From 8d6565c32c37ae98c834303ed4602457fabdb493 Mon Sep 17 00:00:00 2001 From: manuelgu Date: Sun, 29 May 2016 19:38:31 +0200 Subject: [PATCH] Fix NPE --- .../java/com/plotsquared/bukkit/listeners/PlayerEvents.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java index 2c5416b2f..15fa9f7a7 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java @@ -780,6 +780,9 @@ public class PlayerEvents extends PlotListener implements Listener { return; } Plot plot = area.getOwnedPlot(location); + if (plot == null) { + return; + } switch (event.getSource().getType()) { case GRASS: if (Flags.GRASS_GROW.isFalse(plot)) {