This commit is contained in:
jancoow
2015-07-09 22:33:08 +02:00
parent 55f9c1a623
commit 78acc6aa5f
+1 -2
View File
@@ -61,8 +61,7 @@ public class SQLConnector
Highscore hsc = null;
try {
result.next();
if(result != null)
if(result.next() && result != null)
hsc = new Highscore(si, result.getString("username"), result.getInt("score"), result.getDate("date").getTime());
} catch (SQLException e) {