Null checks

This commit is contained in:
T00thpick1 2013-05-16 09:27:26 -04:00
parent fb450671d6
commit 12e388a392

View File

@ -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