aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2023-01-31 09:28:31 +0100
committerGitHub <noreply@github.com>2023-01-31 19:28:31 +1100
commit883f49b033c1f3fd18334d1e4c9ec2869d2ec22c (patch)
treebb9aa99e24a93e9773ff02148cd2eded90f5923b /src/main/java
parent81ab56786aeb360e23f2f864c64101cc026c8277 (diff)
downloadNotEnoughUpdates-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/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java2
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;