From 7fe4f09a08e7e6353852e63df4a2c57260f28b12 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Mon, 20 Jan 2020 18:48:40 +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 e7a0f7c..d437d7e 100644 --- a/FightSystem_Main/src/de/steamwar/fightsystem/kit/Kit.java +++ b/FightSystem_Main/src/de/steamwar/fightsystem/kit/Kit.java @@ -92,6 +92,8 @@ public class Kit { if(armor != null){ for(int i = 0; i < 4; i++){ + if(armor[i] == null) + continue; SWItem item = new SWItem(); item.setItemStack(armor[i]); inv.setItem(36 + i, item);