[FIX] NPE in new profiles

This commit is contained in:
Gravita 2024-04-26 01:49:09 +07:00
parent b5457ee866
commit 6c0ead015b

View file

@ -51,6 +51,7 @@ public ClientProfileBuilder() {
this.properties = new HashMap<>();
this.servers = new ArrayList<>();
this.flags = new ArrayList<>();
this.settings = new ClientProfile.ProfileDefaultSettings();
}
public ClientProfileBuilder(ClientProfile profile) {
@ -83,6 +84,7 @@ public ClientProfileBuilder(ClientProfile profile) {
this.mainClass = profile.getMainClass();
this.mainModule = profile.getMainModule();
this.moduleConf = profile.getModuleConf();
this.settings = profile.getSettings();
}
public ClientProfileBuilder setTitle(String title) {