Skip to content

Commit

Permalink
[FIX] NPE: User not found and permissions enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
gravit0 committed Oct 6, 2024
1 parent abe904d commit f16f5fb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f16f5fb

Please sign in to comment.