mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-08-31 18:11:44 +02:00
Fix NPE from null primary group in Vault hook (#3103)
This commit is contained in:
@@ -254,6 +254,9 @@ public class LuckPermsVaultPermission extends AbstractVaultPermission {
|
||||
QueryOptions queryOptions = getQueryOptions(uuid, world);
|
||||
MetaCache metaData = user.getCachedData().getMetaData(queryOptions);
|
||||
String value = metaData.getPrimaryGroup(MetaCheckEvent.Origin.THIRD_PARTY_API);
|
||||
if (value == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Group group = getGroup(value);
|
||||
return group != null ? groupName(group) : value;
|
||||
|
Reference in New Issue
Block a user