mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-11-25 12:25:20 +01:00
another npe fix
This commit is contained in:
parent
34309a50a9
commit
d80b9d75ce
@ -148,6 +148,11 @@ public class CurrentMenu extends Holder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// return early, fixes npe
|
||||||
|
if (!container.has(Keys.auction_store_id.getNamespacedKey())) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
final UUID uuid = player.getUniqueId();
|
final UUID uuid = player.getUniqueId();
|
||||||
|
|
||||||
final AuctionItem auction = this.userManager.getAuctionItemById(uuid, container.getOrDefault(Keys.auction_store_id.getNamespacedKey(), PersistentDataType.STRING, ""));
|
final AuctionItem auction = this.userManager.getAuctionItemById(uuid, container.getOrDefault(Keys.auction_store_id.getNamespacedKey(), PersistentDataType.STRING, ""));
|
||||||
|
Loading…
Reference in New Issue
Block a user