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; Highscore hsc = null;
try { try {
result.next(); if(result.next() && result != null)
if(result != null)
hsc = new Highscore(si, result.getString("username"), result.getInt("score"), result.getDate("date").getTime()); hsc = new Highscore(si, result.getString("username"), result.getInt("score"), result.getDate("date").getTime());
} catch (SQLException e) { } catch (SQLException e) {