mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-14 06:17:47 -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()
|
profiles.stream()
|
||||||
.filter(it -> it.getName().equals(config().getSelectedProfile()))
|
.filter(it -> it.getName().equals(config().getSelectedProfile()))
|
||||||
.findFirst()
|
.findFirst()
|
||||||
.get());
|
.orElse(profiles.get(0)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ObservableList<Profile> getProfiles() {
|
public static ObservableList<Profile> getProfiles() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user