mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
empty array is not null array
This commit is contained in:
parent
1f8b60081e
commit
2c747ecf36
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ public class PermissionsExHandler extends SuperpermsHandler
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] groupsNames = user.getGroupsNames();
|
String[] groupsNames = user.getGroupsNames();
|
||||||
if (groupsNames == null)
|
if (groupsNames == null || groupsNames.length == 0)
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue