Fix the bug that SpiLoader#closeResources may not record the exception when error occurs (#2890)

This commit is contained in:
hongpy 2022-10-09 11:04:57 +08:00 committed by GitHub
parent e13d20ce55
commit 5864ab577f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -505,7 +505,7 @@ public final class SpiLoader<S> {
try {
closeable.close();
} catch (Exception e) {
if (firstException != null) {
if (firstException == null) {
firstException = e;
}
}