From f3aa9c43efc63d9b196a8581928ade472c3592ec Mon Sep 17 00:00:00 2001 From: MattBDev <4009945+MattBDev@users.noreply.github.com> Date: Tue, 6 Aug 2019 21:44:39 -0400 Subject: [PATCH] Fixed a potential NPE --- .../plotsquared/plot/listener/WESubscriber.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/listener/WESubscriber.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/listener/WESubscriber.java index 8b3c5c624..3eac6aa62 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/listener/WESubscriber.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/listener/WESubscriber.java @@ -29,6 +29,9 @@ public class WESubscriber { return; } World worldObj = event.getWorld(); + if (worldObj == null) { + return; + } String world = worldObj.getName(); Actor actor = event.getActor(); if (actor != null && actor.isPlayer()) {