Permalink
Browse files

Merge pull request #389 from Brokkonaut/fix-npe-BukkitOfflinePlayer

Fix NPE in WorldGuardPlugin.wrapOfflinePlayer()
  • Loading branch information...
me4502 committed Oct 8, 2018
2 parents 7e0ff24 + be426e9 commit e0b91e9529c825723ff342f16f5bb403769b18b9
@@ -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;
}

0 comments on commit e0b91e9

Please sign in to comment.