From 12e388a3926bced2ae83c2c204471a115e35e0a5 Mon Sep 17 00:00:00 2001 From: T00thpick1 Date: Thu, 16 May 2013 09:27:26 -0400 Subject: [PATCH] Null checks --- .../java/com/gmail/nossr50/datatypes/player/PlayerProfile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java b/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java index 550305033..39cc98955 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java +++ b/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java @@ -296,7 +296,7 @@ public class PlayerProfile { "WHERE u.user = '" + playerName + "'" ).get(1); - if (playerData.size() == 0) { + if (playerData == null || playerData.size() == 0) { userId = SQLDatabaseManager.getInt("SELECT id FROM " + tablePrefix + "users WHERE user = '" + playerName + "'"); // Check if user doesn't exist