mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-07-23 15:50:29 +02:00
Fixed a potential NPE
This commit is contained in:
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user