From 59204665bcf2578e15e3929108b729dcced92902 Mon Sep 17 00:00:00 2001 From: Jeffrey Han Date: Tue, 20 Dec 2016 10:19:02 -0500 Subject: [PATCH] Fixed a potential NullPointerException in ScoreDB. (#219) Signed-off-by: Jeffrey Han --- src/itdelatrisu/opsu/db/ScoreDB.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/itdelatrisu/opsu/db/ScoreDB.java b/src/itdelatrisu/opsu/db/ScoreDB.java index 8ae37f8c..e50cf9e4 100644 --- a/src/itdelatrisu/opsu/db/ScoreDB.java +++ b/src/itdelatrisu/opsu/db/ScoreDB.java @@ -360,7 +360,7 @@ public class ScoreDB { ResultSet rs = selectMapSetStmt.executeQuery(); List 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()) { ScoreData s = new ScoreData(rs); if (!s.version.equals(version)) {