Skip to content

Commit

Permalink
Fix missing null checking. (#2512)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZekerZhayard authored Sep 12, 2023
1 parent 50173a3 commit 833ac2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public void checkUpdates() {
return null;
})
.whenComplete(Schedulers.javafx(), (result, exception) -> {
if (exception != null) {
if (exception != null || result == null) {
Controllers.dialog("Failed to check updates", "failed", MessageDialogPane.MessageType.ERROR);
} else if (result.isEmpty()) {
Controllers.dialog(i18n("mods.check_updates.empty"));
Expand Down

0 comments on commit 833ac2e

Please sign in to comment.