This commit is contained in:
huanghongxun 2018-10-15 13:05:32 +08:00
parent 340ee751e8
commit f1acc1d2c1

View File

@ -30,7 +30,8 @@ public class GameAdvancedListItem extends AdvancedListItem {
public GameAdvancedListItem() {
FXUtils.onChangeAndOperate(Profiles.selectedVersionProperty(), version -> {
if (Profiles.getSelectedProfile().getRepository().hasVersion(version)) {
if (version != null && Profiles.getSelectedProfile() != null &&
Profiles.getSelectedProfile().getRepository().hasVersion(version)) {
setTitle(version);
setSubtitle(null);
setImage(Profiles.getSelectedProfile().getRepository().getVersionIconImage(version));