Fix crash when first launch

This commit is contained in:
huangyuhui 2018-09-03 12:09:58 +08:00
parent 35e1e0bdd4
commit fd3c496a3d

View File

@ -128,7 +128,7 @@ public final class Profiles {
profiles.stream()
.filter(it -> it.getName().equals(config().getSelectedProfile()))
.findFirst()
.get());
.orElse(profiles.get(0)));
}
public static ObservableList<Profile> getProfiles() {