Skip to content

Commit

Permalink
Fix the bug that SpiLoader#closeResources may not record the exceptio…
Browse files Browse the repository at this point in the history
…n when error occurs (#2890)
  • Loading branch information
hongpy authored Oct 9, 2022
1 parent e13d20c commit 5864ab5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ private void closeResources(Closeable... closeables) {
try {
closeable.close();
} catch (Exception e) {
if (firstException != null) {
if (firstException == null) {
firstException = e;
}
}
Expand Down

0 comments on commit 5864ab5

Please sign in to comment.