Fix NPE with Vault #getPlayerGroups
This commit is contained in:
parent
5784458d03
commit
77956d69ad
@ -352,7 +352,7 @@ public class VaultPermissionHook extends Permission {
|
|||||||
String w = world; // screw effectively final
|
String w = world; // screw effectively final
|
||||||
return user.getNodes().values().stream()
|
return user.getNodes().values().stream()
|
||||||
.filter(Node::isGroupNode)
|
.filter(Node::isGroupNode)
|
||||||
.filter(n -> n.shouldApplyWithContext(createContextForWorldLookup(plugin.getPlayer(user), w).getContexts()))
|
.filter(n -> n.shouldApplyWithContext(createContextForWorldLookup(player, w).getContexts()))
|
||||||
.map(Node::getGroupName)
|
.map(Node::getGroupName)
|
||||||
.toArray(String[]::new);
|
.toArray(String[]::new);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user