mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 11:55:38 +01:00
Fixed a potential NPE
This commit is contained in:
parent
e6a7f4e5a7
commit
f3aa9c43ef
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user