add nullcheck (fix #96)

This commit is contained in:
yugecin 2016-12-10 11:21:03 +01:00
parent 22a6cfd851
commit b66c0d5c5c

View File

@ -369,7 +369,9 @@ public class ScoreDB {
version = s.version; version = s.version;
list = new ArrayList<ScoreData>(); list = new ArrayList<ScoreData>();
} }
list.add(s); if (list != null) {
list.add(s);
}
} }
if (list != null) if (list != null)
map.put(version, getSortedArray(list)); map.put(version, getSortedArray(list));