Fix DungeonSign NPE

This commit is contained in:
Daniel Saukel 2020-05-02 01:05:17 +02:00
parent ce7790f341
commit e46fb89349

View File

@ -164,6 +164,9 @@ public class DGameWorld extends DInstanceWorld implements GameWorld {
@Override @Override
public DungeonSign createDungeonSign(Sign sign, String[] lines) { public DungeonSign createDungeonSign(Sign sign, String[] lines) {
DungeonSign dSign = super.createDungeonSign(sign, lines); DungeonSign dSign = super.createDungeonSign(sign, lines);
if (dSign == null) {
return null;
}
String[] triggerTypes = lines[3].replaceAll("\\s", "").split(","); String[] triggerTypes = lines[3].replaceAll("\\s", "").split(",");
for (String triggerString : triggerTypes) { for (String triggerString : triggerTypes) {