diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2023-01-31 09:28:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-31 19:28:31 +1100 |
commit | 883f49b033c1f3fd18334d1e4c9ec2869d2ec22c (patch) | |
tree | bb9aa99e24a93e9773ff02148cd2eded90f5923b /src | |
parent | 81ab56786aeb360e23f2f864c64101cc026c8277 (diff) | |
download | NotEnoughUpdates-883f49b033c1f3fd18334d1e4c9ec2869d2ec22c.tar.gz NotEnoughUpdates-883f49b033c1f3fd18334d1e4c9ec2869d2ec22c.tar.bz2 NotEnoughUpdates-883f49b033c1f3fd18334d1e4c9ec2869d2ec22c.zip |
Fixed NPE in AuctionBINWarning (#569)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java | 2 |
1 files changed, 2 insertions, 0 deletions
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; |