mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-09-18 02:51:18 +02:00
empty array is not null array
This commit is contained in:
parent
1f8b60081e
commit
2c747ecf36
@ -27,7 +27,7 @@ public class PermissionsExHandler extends SuperpermsHandler
|
||||
}
|
||||
|
||||
String[] groupsNames = user.getGroupsNames();
|
||||
if (groupsNames == null)
|
||||
if (groupsNames == null || groupsNames.length == 0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user