Conceal NPE

This commit is contained in:
huanghongxun
2018-09-26 19:07:09 +08:00
parent 5a0e17b121
commit 48d98b2424
2 changed files with 2 additions and 4 deletions

View File

@@ -150,7 +150,7 @@ public class HMCLGameRepository extends DefaultGameRepository {
}
public Image getVersionIconImage(String id) {
if (id == null)
if (id == null || !isLoaded())
return new Image("/assets/img/grass.png");
Version version = getVersion(id);