Skip to content

Commit

Permalink
fix: Add null check for quest bank trimming
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoinkwiz committed Nov 27, 2024
1 parent a8b5b31 commit 16fee01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 16fee01

Please sign in to comment.