mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-27 05:05:18 +01:00
Prevent NPE
This commit is contained in:
parent
907c6b3534
commit
2ffa4c9874
@ -344,7 +344,10 @@ public class Players implements DataObject, MetaDataAble {
|
||||
*/
|
||||
public void addToPendingKick(World world)
|
||||
{
|
||||
this.pendingKicks.add(Util.getWorld(world).getName());
|
||||
World w = Util.getWorld(world);
|
||||
if (w != null) {
|
||||
this.pendingKicks.add(w.getName());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user