Fix: NPE in LauncherHelper. (#3160)

This commit is contained in:
Burning_TNT 2024-07-20 01:44:26 +08:00 committed by GitHub
parent 816a8539ea
commit 1e472ea463
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -241,7 +241,7 @@ public final class LauncherHelper {
launchingStepsPane.fireEvent(new DialogCloseEvent());
if (!success) {
Exception ex = executor.getException();
if (!(ex instanceof CancellationException)) {
if (ex != null && !(ex instanceof CancellationException)) {
String message;
if (ex instanceof ModpackCompletionException) {
if (ex.getCause() instanceof FileNotFoundException)