From 2ac00294f9f19e8e1184ce72392db9e608b1aa83 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 21 Jan 2020 17:49:04 +0100 Subject: [PATCH] Hotfix NPE Signed-off-by: Lixfel --- FightSystem_Main/src/de/steamwar/fightsystem/kit/Kit.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FightSystem_Main/src/de/steamwar/fightsystem/kit/Kit.java b/FightSystem_Main/src/de/steamwar/fightsystem/kit/Kit.java index d437d7e..bc6c5e8 100644 --- a/FightSystem_Main/src/de/steamwar/fightsystem/kit/Kit.java +++ b/FightSystem_Main/src/de/steamwar/fightsystem/kit/Kit.java @@ -85,6 +85,8 @@ public class Kit { //36 = Inventargröße for(int i = 0; i < 36; i++){ + if(inventory[i] == null) + continue; SWItem item = new SWItem(); item.setItemStack(inventory[i]); inv.setItem(i, item);