From 6f46b7d1cb9ef409d13745fc7714396a67de3842 Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Wed, 27 Jul 2016 09:50:34 +0200 Subject: [PATCH] Fix NPE #882 --- .../xephi/authme/permission/handlers/GroupManagerHandler.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/fr/xephi/authme/permission/handlers/GroupManagerHandler.java b/src/main/java/fr/xephi/authme/permission/handlers/GroupManagerHandler.java index d8980f87e..18d813e8c 100644 --- a/src/main/java/fr/xephi/authme/permission/handlers/GroupManagerHandler.java +++ b/src/main/java/fr/xephi/authme/permission/handlers/GroupManagerHandler.java @@ -38,6 +38,10 @@ public class GroupManagerHandler implements PermissionHandler { @Override public boolean hasPermissionOffline(String name, PermissionNode node) { final AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissionsByPlayerName(name); + if(handler == null) { + return false; + } + List perms = handler.getAllPlayersPermissions(name); return perms.contains(node.getNode()); }