From a80ac4004fd92616a79bded4efc17c045dd16e7d Mon Sep 17 00:00:00 2001 From: boy0001 Date: Wed, 12 Aug 2015 15:52:21 +1000 Subject: [PATCH] Fix #539 --- pom.xml | 2 +- src/main/java/com/intellectualcrafters/plot/util/MainUtil.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 18ddd747a..1a48c396a 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ UTF-8 PlotSquared - 3.0.13 + 3.0.14 PlotSquared jar diff --git a/src/main/java/com/intellectualcrafters/plot/util/MainUtil.java b/src/main/java/com/intellectualcrafters/plot/util/MainUtil.java index 40dabb1f4..0e0e7ad08 100644 --- a/src/main/java/com/intellectualcrafters/plot/util/MainUtil.java +++ b/src/main/java/com/intellectualcrafters/plot/util/MainUtil.java @@ -88,6 +88,9 @@ public class MainUtil { public static boolean isPlotArea(final Location location) { final PlotWorld plotworld = PS.get().getPlotWorld(location.getWorld()); + if (plotworld == null) { + return false; + } if (plotworld.TYPE == 2) { return ClusterManager.getCluster(location) != null; }