Fixed a potential NullPointerException in ScoreDB. (#219)
Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
parent
7fa9355bbf
commit
59204665bc
|
@ -360,7 +360,7 @@ public class ScoreDB {
|
||||||
ResultSet rs = selectMapSetStmt.executeQuery();
|
ResultSet rs = selectMapSetStmt.executeQuery();
|
||||||
|
|
||||||
List<ScoreData> list = null;
|
List<ScoreData> list = null;
|
||||||
String version = ""; // sorted by version, so pass through and check for differences
|
String version = null; // sorted by version, so pass through and check for differences
|
||||||
while (rs.next()) {
|
while (rs.next()) {
|
||||||
ScoreData s = new ScoreData(rs);
|
ScoreData s = new ScoreData(rs);
|
||||||
if (!s.version.equals(version)) {
|
if (!s.version.equals(version)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user