Skip to content

Commit

Permalink
Probably fix GP hook exception (#915)
Browse files Browse the repository at this point in the history
  • Loading branch information
bensku committed Oct 27, 2017
1 parent f187db0 commit 98f363b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public boolean isOwner(final OfflinePlayer p) {
@SuppressWarnings({"null", "deprecation"})
@Override
public Collection<OfflinePlayer> getOwners() {
if (claim.isAdminClaim()) // Admin claims do not have owners! (fixes NPE)
if (claim.isAdminClaim() || (supportsUUIDs && claim.ownerID == null)) // Not all claims have owners!
return Collections.emptyList();
else if (supportsUUIDs)
return Arrays.asList(Bukkit.getOfflinePlayer(claim.ownerID));
Expand Down

0 comments on commit 98f363b

Please sign in to comment.