From 95b530ec447332bb66563a0542a1b1ceb608a5b2 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sun, 24 Jan 2016 15:41:43 +0100 Subject: [PATCH] Better debugging in order to fix #1003 --- src/com/massivecraft/factions/engine/EngineMain.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/massivecraft/factions/engine/EngineMain.java b/src/com/massivecraft/factions/engine/EngineMain.java index 49c354d6..6ccf2ac2 100644 --- a/src/com/massivecraft/factions/engine/EngineMain.java +++ b/src/com/massivecraft/factions/engine/EngineMain.java @@ -754,6 +754,9 @@ public class EngineMain extends EngineAbstract public String parseTerritoryInfo(String string, MPlayer mplayer, Faction faction) { + if (string == null) throw new NullPointerException("string"); + if (faction == null) throw new NullPointerException("faction"); + string = Txt.parse(string); string = string.replace("{name}", faction.getName());