Skip to content

Commit

Permalink
Merge pull request #389 from Brokkonaut/fix-npe-BukkitOfflinePlayer
Browse files Browse the repository at this point in the history
Fix NPE in WorldGuardPlugin.wrapOfflinePlayer()
  • Loading branch information
me4502 committed Oct 8, 2018
2 parents 7e0ff24 + be426e9 commit e0b91e9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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;
}

Expand Down

0 comments on commit e0b91e9

Please sign in to comment.