Fix crash when removed all profiles

This commit is contained in:
huangyuhui
2018-09-03 18:38:33 +08:00
parent a9be348ddf
commit d01c9a425a
4 changed files with 19 additions and 12 deletions

View File

@@ -57,7 +57,7 @@ public class DefaultGameRepository implements GameRepository {
@Override
public boolean hasVersion(String id) {
return versions.containsKey(id);
return id != null && versions.containsKey(id);
}
@Override