From f0c9546e1d3fe82ab3ac3c74e80cf07f75d29222 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Wed, 15 Jul 2015 08:10:09 +1000 Subject: [PATCH] Fixes #403 --- .../com/intellectualcrafters/plot/listeners/PlotListener.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlotListener.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlotListener.java index 45f7724c5..1d7041b7c 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlotListener.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlotListener.java @@ -120,7 +120,9 @@ public class PlotListener extends APlotListener { if (size != 0) { Flag titleFlag = flags.get("titles"); - titles = (Boolean) titleFlag.getValue(); + if (titleFlag != null) { + titles = (Boolean) titleFlag.getValue(); + } Flag greetingFlag = flags.get("greeting"); if (greetingFlag != null) { greeting = (String) greetingFlag.getValue();