mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-27 10:31:36 +01:00
Merge pull request #389 from Brokkonaut/fix-npe-BukkitOfflinePlayer
Fix NPE in WorldGuardPlugin.wrapOfflinePlayer()
This commit is contained in:
commit
e0b91e9529
@ -41,7 +41,7 @@ public BukkitPlayer(WorldGuardPlugin plugin, Player player) {
|
||||
super((WorldEditPlugin) Bukkit.getPluginManager().getPlugin("WorldEdit"), player);
|
||||
this.plugin = plugin;
|
||||
// getName() takes longer than before in newer versions of Minecraft
|
||||
this.name = player.getName();
|
||||
this.name = player == null ? null : player.getName();
|
||||
this.silenced = silenced;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user