mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 08:36:45 +01:00
Null checks
This commit is contained in:
parent
fb450671d6
commit
12e388a392
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user