Skip to content

Commit

Permalink
Fix NullPointer in TabCompleter
Browse files Browse the repository at this point in the history
  • Loading branch information
aurorasmiles committed Apr 4, 2020
1 parent 6b39acc commit d44d289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/alpenblock/bungeeperms/TabCompleter.java
Expand Up @@ -88,7 +88,7 @@ private static List<Entry> filterbyperm(Sender sender, List<Entry> entries)
List<Entry> ret = new ArrayList();
for (Entry e : entries)
{
if (BungeePerms.getInstance().getPermissionsChecker().hasPermOrConsoleOnServerInWorld(sender, e.getPermission()))
if (e.getPermission() == null || BungeePerms.getInstance().getPermissionsChecker().hasPermOrConsoleOnServerInWorld(sender, e.getPermission()))
ret.add(e);
}
return ret;
Expand Down

0 comments on commit d44d289

Please sign in to comment.