Skip to content

Commit

Permalink
Include original exception if cause is null
Browse files Browse the repository at this point in the history
Closes gh-33080
See gh-32952
  • Loading branch information
jhoeller committed Jun 20, 2024
1 parent e94ec80 commit 66eddf9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ static IOException convertException(RuntimeException ex) {
return ioEx;
}
}
return new IOException(ex.getMessage(), cause);
return new IOException(ex.getMessage(), (cause != null ? cause : ex));
}


Expand Down

0 comments on commit 66eddf9

Please sign in to comment.