diff --git a/varo/src/main/java/de/cliffbreak/varo/database/Database.java b/varo/src/main/java/de/cliffbreak/varo/database/Database.java index 82affec..785784e 100644 --- a/varo/src/main/java/de/cliffbreak/varo/database/Database.java +++ b/varo/src/main/java/de/cliffbreak/varo/database/Database.java @@ -77,6 +77,9 @@ public class Database { try { final Statement s = this.conn.createStatement(); final ResultSet rs = s.executeQuery("SELECT " + type + " FROM playercache WHERE `player` ='" + uuid + "';"); + if (rs.next() == false) { + return null; + } final Object obj = rs.getObject(type); s.close(); return obj;