[FIX] NPE: User not found and permissions enabled

This commit is contained in:
Gravita 2024-10-06 22:59:49 +07:00
parent abe904d73c
commit f16f5fbc6d
No known key found for this signature in database
GPG key ID: 543A8F335C9CD633

View file

@ -295,7 +295,9 @@ private SQLUser queryUser(String sql, String value) throws SQLException {
user = constructUser(set);
}
}
user.permissions = requestPermissions(user.uuid.toString());
if(user != null) {
user.permissions = requestPermissions(user.uuid.toString());
}
return user;
}