From e46fb89349f359baa483dbc3632a42f565690664 Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Sat, 2 May 2020 01:05:17 +0200 Subject: [PATCH] Fix DungeonSign NPE --- core/src/main/java/de/erethon/dungeonsxl/world/DGameWorld.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/java/de/erethon/dungeonsxl/world/DGameWorld.java b/core/src/main/java/de/erethon/dungeonsxl/world/DGameWorld.java index 3ea6970b..ab053d70 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/world/DGameWorld.java +++ b/core/src/main/java/de/erethon/dungeonsxl/world/DGameWorld.java @@ -164,6 +164,9 @@ public class DGameWorld extends DInstanceWorld implements GameWorld { @Override public DungeonSign createDungeonSign(Sign sign, String[] lines) { DungeonSign dSign = super.createDungeonSign(sign, lines); + if (dSign == null) { + return null; + } String[] triggerTypes = lines[3].replaceAll("\\s", "").split(","); for (String triggerString : triggerTypes) {