mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Fixed a potential NPE
This commit is contained in:
parent
e6a7f4e5a7
commit
f3aa9c43ef
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue