From 6c45a6573adcc53824479ec47bdfbfbd4acd1544 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 30 Dec 2024 20:09:02 -0600 Subject: [PATCH] null checks --- src/engine/objects/PlayerCharacter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index b3eb8d7a..d20cf5de 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4874,7 +4874,7 @@ public class PlayerCharacter extends AbstractCharacter { if(this.level < 10) { this.setLevel((short) 10); - if(this.charItemManager.getGoldInventory().getNumOfItems() < 1000) { + if(this.charItemManager != null && this.charItemManager.getGoldInventory() != null && this.charItemManager.getGoldInventory().getNumOfItems() < 1000) { this.getCharItemManager().addGoldToInventory(1000, false); this.getCharItemManager().addItemToInventory(new MobLoot(this, ItemBase.getItemBase(980066), 1, false).promoteToItem(this)); }