diff --git a/src/main/java/xyz/oribuin/eternaltags/manager/CategoryManager.java b/src/main/java/xyz/oribuin/eternaltags/manager/CategoryManager.java index 6d9943a..ec9586e 100644 --- a/src/main/java/xyz/oribuin/eternaltags/manager/CategoryManager.java +++ b/src/main/java/xyz/oribuin/eternaltags/manager/CategoryManager.java @@ -95,7 +95,7 @@ public Category getFirst(CategoryType categoryType) { * @return The category */ public Category getCategory(String id) { - if (this.cachedCategories.isEmpty()) return null; + if (this.cachedCategories.isEmpty() || id == null) return null; return this.cachedCategories.get(id.toLowerCase()); }