Merge pull request #541 from zkitefly/fix/launcher-helper-npe

修复 LauncherHelper NPE 问题
This commit is contained in:
ShirosakiMio 2024-08-23 11:57:45 +08:00 committed by GitHub
commit 294ceb8591
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ public final class LauncherHelper {
launchingStepsPane.dismiss(); launchingStepsPane.dismiss();
if (!success) { if (!success) {
Exception ex = executor.getException(); Exception ex = executor.getException();
if (!(ex instanceof CancellationException)) { if (ex != null && !(ex instanceof CancellationException)) {
Schedulers.androidUIThread().execute(() -> { Schedulers.androidUIThread().execute(() -> {
String message; String message;
if (ex instanceof ModpackCompletionException) { if (ex instanceof ModpackCompletionException) {