mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-12 13:26:53 -04:00
Fix crash when first launch
This commit is contained in:
parent
35e1e0bdd4
commit
fd3c496a3d
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user