From eca87c70dfe67c73c4e85539e911cc3e70fa3dfb Mon Sep 17 00:00:00 2001 From: Alexander Ott Date: Tue, 3 Dec 2024 17:18:57 +0100 Subject: [PATCH] Fix for "Widget is disposed" Error in AccountBalancePane (#4381) Closes #4381 --- .../abuchen/portfolio/ui/views/panes/AccountBalancePane.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/panes/AccountBalancePane.java b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/panes/AccountBalancePane.java index 32d3178796..3fce74b237 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/panes/AccountBalancePane.java +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/panes/AccountBalancePane.java @@ -32,7 +32,7 @@ public class AccountBalancePane implements InformationPanePage @Optional public void onDiscreedModeChanged(@UIEventTopic(UIConstants.Event.Global.DISCREET_MODE) Object obj) { - if (chart != null) + if (chart != null && !chart.isDisposed()) chart.redraw(); }