From 359cec00c116bb6302af158bab1bfd945450f386 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 24 Aug 2021 19:22:55 +0200 Subject: [PATCH] Fix CustomCommandListener NPE Signed-off-by: yoyosource --- .../bausystem/features/script/CustomCommandListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/script/CustomCommandListener.java b/BauSystem_Main/src/de/steamwar/bausystem/features/script/CustomCommandListener.java index e7c1c857..2eff813d 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/script/CustomCommandListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/script/CustomCommandListener.java @@ -182,6 +182,7 @@ public class CustomCommandListener implements Listener { } private YAPIONObject output(Player p) { + if (!playerMap.containsKey(p)) return new YAPIONObject(); YAPIONObject yapionObject = new YAPIONObject(); YAPIONMap yapionMap = new YAPIONMap(); yapionObject.add("", yapionMap);