From 068542223d5d68ba9cf78f4e731426f8c0eec4cb Mon Sep 17 00:00:00 2001 From: Intelli Date: Wed, 9 Apr 2025 18:52:54 -0600 Subject: [PATCH] Fixed NullPointerException when processing unknown entity types --- src/main/java/net/coreprotect/utility/EntityUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/coreprotect/utility/EntityUtils.java b/src/main/java/net/coreprotect/utility/EntityUtils.java index a3c922f..342e75f 100644 --- a/src/main/java/net/coreprotect/utility/EntityUtils.java +++ b/src/main/java/net/coreprotect/utility/EntityUtils.java @@ -88,7 +88,7 @@ public class EntityUtils extends Queue { public static EntityType getEntityType(int id) { // Internal ID pulled from DB - EntityType entitytype = null; + EntityType entitytype = EntityType.UNKNOWN; if (ConfigHandler.entitiesReversed.get(id) != null) { String name = ConfigHandler.entitiesReversed.get(id); if (name.contains(NAMESPACE)) {