diff --git a/bukkit/src/main/java/me/lucko/luckperms/bukkit/vault/LuckPermsVaultPermission.java b/bukkit/src/main/java/me/lucko/luckperms/bukkit/vault/LuckPermsVaultPermission.java index abb24d214..d9354d26b 100644 --- a/bukkit/src/main/java/me/lucko/luckperms/bukkit/vault/LuckPermsVaultPermission.java +++ b/bukkit/src/main/java/me/lucko/luckperms/bukkit/vault/LuckPermsVaultPermission.java @@ -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;