From ab1a2f6fcba8a673c332c16cf79c0abc111d9922 Mon Sep 17 00:00:00 2001 From: Haowei Wen Date: Tue, 15 Jun 2021 00:34:50 +0800 Subject: [PATCH] fix: NPE in ModpackInfoPage --- .../java/org/jackhuang/hmcl/ui/export/ModpackInfoPage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/export/ModpackInfoPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/export/ModpackInfoPage.java index 8c049ba0a..1bf590650 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/export/ModpackInfoPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/export/ModpackInfoPage.java @@ -78,13 +78,13 @@ public final class ModpackInfoPage extends Control implements WizardPage { private final SimpleStringProperty url = new SimpleStringProperty(""); private final SimpleBooleanProperty forceUpdate = new SimpleBooleanProperty(); private final SimpleBooleanProperty packWithLauncher = new SimpleBooleanProperty(); - private final SimpleStringProperty fileApi = new SimpleStringProperty(); + private final SimpleStringProperty fileApi = new SimpleStringProperty(""); private final SimpleIntegerProperty minMemory = new SimpleIntegerProperty(0); private final SimpleStringProperty authlibInjectorServer = new SimpleStringProperty(); private final SimpleStringProperty launchArguments = new SimpleStringProperty(""); private final SimpleStringProperty javaArguments = new SimpleStringProperty(""); private final ObjectProperty> next = new SimpleObjectProperty<>(); - private final SimpleStringProperty mcbbsThreadId = new SimpleStringProperty(); + private final SimpleStringProperty mcbbsThreadId = new SimpleStringProperty(""); public ModpackInfoPage(WizardController controller, HMCLGameRepository gameRepository, String version) { this.controller = controller;