Fixed NPE mentioned in #451

This commit is contained in:
Yellow Fish 2018-09-13 01:13:20 +08:00
parent 24f3dec453
commit 2bfc85b18f

View File

@ -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())