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,8 +369,10 @@ public class ScoreDB {
version = s.version; version = s.version;
list = new ArrayList<ScoreData>(); list = new ArrayList<ScoreData>();
} }
if (list != null) {
list.add(s); list.add(s);
} }
}
if (list != null) if (list != null)
map.put(version, getSortedArray(list)); map.put(version, getSortedArray(list));
rs.close(); rs.close();