Skip to content

Commit

Permalink
another npe fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Oct 31, 2024
1 parent 34309a5 commit d80b9d7
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ public void run(InventoryClickEvent event) {
}
}

// return early, fixes npe
if (!container.has(Keys.auction_store_id.getNamespacedKey())) {
return;
}

final UUID uuid = player.getUniqueId();

final AuctionItem auction = this.userManager.getAuctionItemById(uuid, container.getOrDefault(Keys.auction_store_id.getNamespacedKey(), PersistentDataType.STRING, ""));
Expand Down

0 comments on commit d80b9d7

Please sign in to comment.