empty array is not null array

This commit is contained in:
Necrodoom 2014-06-19 16:50:54 +03:00 committed by KHobbits
parent 1f8b60081e
commit 2c747ecf36

View File

@ -27,7 +27,7 @@ public class PermissionsExHandler extends SuperpermsHandler
}
String[] groupsNames = user.getGroupsNames();
if (groupsNames == null)
if (groupsNames == null || groupsNames.length == 0)
{
return null;
}