From ff78c1443c3488084335d0d366424d846fe18501 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 13 Sep 2023 22:04:23 -0500 Subject: [PATCH] null check --- src/engine/gameManager/NPCManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/gameManager/NPCManager.java b/src/engine/gameManager/NPCManager.java index da125cd9..16395ad2 100644 --- a/src/engine/gameManager/NPCManager.java +++ b/src/engine/gameManager/NPCManager.java @@ -467,8 +467,10 @@ public enum NPCManager { if(NPCManager._runeSetMap.containsKey(npc.runeSetID)) { for (int runeID : _runeSetMap.get(npc.runeSetID)) { RuneBase rb = RuneBase.getRuneBase(runeID); - CharacterRune toApply = new CharacterRune(rb, npc.getObjectUUID()); - npc.runes.add(toApply); + if(rb != null) { + CharacterRune toApply = new CharacterRune(rb, npc.getObjectUUID()); + npc.runes.add(toApply); + } } } }