mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 02:04:44 +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