diff --git a/paper-api/src/main/java/org/bukkit/metadata/MetadataStoreBase.java b/paper-api/src/main/java/org/bukkit/metadata/MetadataStoreBase.java index 0c384abe89..a8d948a5ce 100644 --- a/paper-api/src/main/java/org/bukkit/metadata/MetadataStoreBase.java +++ b/paper-api/src/main/java/org/bukkit/metadata/MetadataStoreBase.java @@ -82,6 +82,7 @@ public abstract class MetadataStoreBase { public synchronized void removeMetadata(T subject, String metadataKey, Plugin owningPlugin) { String key = cachedDisambiguate(subject, metadataKey); List metadataList = metadataMap.get(key); + if (metadataList == null) return; for (int i = 0; i < metadataList.size(); i++) { if (metadataList.get(i).getOwningPlugin().equals(owningPlugin)) { metadataList.remove(i);