From 9ba801e8e47dcb381f3a06313d12d5eb4de59e27 Mon Sep 17 00:00:00 2001 From: Magnus Ulf Date: Sat, 13 Mar 2021 09:08:12 +0100 Subject: [PATCH] Fix NPE --- .../massivecraft/factions/cmd/CmdFactionsChunkname.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/com/massivecraft/factions/cmd/CmdFactionsChunkname.java b/src/com/massivecraft/factions/cmd/CmdFactionsChunkname.java index c863b20d..ccb3465a 100644 --- a/src/com/massivecraft/factions/cmd/CmdFactionsChunkname.java +++ b/src/com/massivecraft/factions/cmd/CmdFactionsChunkname.java @@ -55,9 +55,11 @@ public class CmdFactionsChunkname extends FactionsCommand // Args String target = this.readArg(); - - target = target.trim(); - target = Txt.parse(target); + if (target != null) + { + target = target.trim(); + target = Txt.parse(target); + } String old = ta.getChunkName();