diff --git a/src/engine/objects/ItemBase.java b/src/engine/objects/ItemBase.java index d10cd932..e2bedccb 100644 --- a/src/engine/objects/ItemBase.java +++ b/src/engine/objects/ItemBase.java @@ -181,7 +181,10 @@ public class ItemBase { ItemTemplate template = ItemTemplate.itemTemplates.get(itemBase.uuid); - _IDsByNames.put(template.item_base_name.toLowerCase().replace(" ", "_"), itemBase.uuid); + if (template == null) + Logger.error("Null template for: " + itemBase.uuid); + else + _IDsByNames.put(template.item_base_name.toLowerCase().replace(" ", "_"), itemBase.uuid); } public static HashMap getItemHashIDMap() {