From 16fee0192069b56113ad617df29ef95d475d2554 Mon Sep 17 00:00:00 2001 From: Zoinkwiz Date: Wed, 27 Nov 2024 01:13:39 +0000 Subject: [PATCH] fix: Add null check for quest bank trimming --- src/main/java/com/questhelper/bank/banktab/QuestBankTab.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/questhelper/bank/banktab/QuestBankTab.java b/src/main/java/com/questhelper/bank/banktab/QuestBankTab.java index 45e21b08f5..a34631cf1b 100644 --- a/src/main/java/com/questhelper/bank/banktab/QuestBankTab.java +++ b/src/main/java/com/questhelper/bank/banktab/QuestBankTab.java @@ -334,7 +334,7 @@ private void removeAddedWidgets() if (addedWidgets.isEmpty()) return; Widget parent = addedWidgets.get(0).getParent(); if (parent == null) return; - + if (parent.getChildren() == null) return; parent.setChildren(Arrays.copyOf(parent.getChildren(), originalContainerChildren)); parent.revalidate();