SQLFix
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user