mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +01:00
Fixed a potential NPE
This commit is contained in:
parent
e6a7f4e5a7
commit
f3aa9c43ef
@ -29,6 +29,9 @@ public class WESubscriber {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
World worldObj = event.getWorld();
|
World worldObj = event.getWorld();
|
||||||
|
if (worldObj == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
String world = worldObj.getName();
|
String world = worldObj.getName();
|
||||||
Actor actor = event.getActor();
|
Actor actor = event.getActor();
|
||||||
if (actor != null && actor.isPlayer()) {
|
if (actor != null && actor.isPlayer()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user