Skip to content

Commit 40eeee7

Browse files
authored
fix #2105: catch NPE in Accounts (#2106)
1 parent 54eab87 commit 40eeee7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

HMCL/src/main/java/org/jackhuang/hmcl/setting/Accounts.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ static void init() {
325325
Schedulers.io().execute(() -> {
326326
try {
327327
finalSelected.logIn();
328-
} catch (AuthenticationException e) {
328+
} catch (Throwable e) {
329329
LOG.log(Level.WARNING, "Failed to log " + finalSelected + " in", e);
330330
}
331331
});

0 commit comments

Comments
 (0)