From 883f49b033c1f3fd18334d1e4c9ec2869d2ec22c Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Tue, 31 Jan 2023 09:28:31 +0100 Subject: Fixed NPE in AuctionBINWarning (#569) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java index 8f6671d2..7282aad7 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java @@ -107,6 +107,8 @@ public class AuctionBINWarning extends GuiElement { } ItemStack sellStack = event.guiContainer.inventorySlots.getSlot(13).getStack(); + if (sellStack == null) return; + String internalname = NotEnoughUpdates.INSTANCE.manager.getInternalNameForItem(sellStack); sellStackAmount = sellStack.stackSize; -- cgit