From dbab4c1212a83b12d866e091b8c0c55feec19bf2 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 1 Sep 2024 09:51:03 -0500 Subject: [PATCH] baked in stats null check --- src/engine/objects/Item.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/Item.java b/src/engine/objects/Item.java index f9c5f0f8..a4fd9d5e 100644 --- a/src/engine/objects/Item.java +++ b/src/engine/objects/Item.java @@ -1249,7 +1249,9 @@ public class Item extends AbstractWorldObject { continue; } AbstractPowerAction apa = PowersManager.getPowerActionByIDString(effect.getIDString()); - apa.applyBakedInStatsForItem(this, this.getItemBase().getBakedInStats().get(token)); + + if(apa != null) + apa.applyBakedInStatsForItem(this, this.getItemBase().getBakedInStats().get(token)); } }