mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-19 00:36:10 -04:00
Fixed NPE mentioned in #451
This commit is contained in:
parent
24f3dec453
commit
2bfc85b18f
@ -59,7 +59,7 @@ public class GameListItem extends Control {
|
||||
|
||||
title.set(id);
|
||||
subtitle.set(libraries.toString());
|
||||
selected.set(profile.getSelectedVersion().equals(id));
|
||||
selected.set(id.equals(profile.getSelectedVersion()));
|
||||
|
||||
File iconFile = profile.getRepository().getVersionIcon(version);
|
||||
if (iconFile.exists())
|
||||
|
Loading…
x
Reference in New Issue
Block a user