From 7f068f164cc7ddfe928908ac0cda866632d74596 Mon Sep 17 00:00:00 2001 From: Lee Venable Date: Wed, 16 Apr 2014 13:14:03 -0500 Subject: [PATCH] Issue #3034 - added widget dispose checks in runAsync methods. Change-Id: I9182441c34c63c5a78023adda2ec036f2a51192e Former-commit-id: 8e8e65ecbc22dcebb7a494ddbd6b7183d67981a0 --- .../uf/viz/archive/ui/AbstractArchiveDlg.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cave/com.raytheon.uf.viz.archive/src/com/raytheon/uf/viz/archive/ui/AbstractArchiveDlg.java b/cave/com.raytheon.uf.viz.archive/src/com/raytheon/uf/viz/archive/ui/AbstractArchiveDlg.java index 1840f6293e..b17a977ee4 100644 --- a/cave/com.raytheon.uf.viz.archive/src/com/raytheon/uf/viz/archive/ui/AbstractArchiveDlg.java +++ b/cave/com.raytheon.uf.viz.archive/src/com/raytheon/uf/viz/archive/ui/AbstractArchiveDlg.java @@ -77,6 +77,8 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog; * Aug 06, 2013 2222 rferrel Changes to display all selected data. * Nov 14, 2013 2549 rferrel Get category data moved off the UI thread. * Dec 11, 2013 2624 rferrel No longer clear table prior to populating. + * Apr 15, 2014 3034 lvenable Added dispose checks in runAsync calls. + * * * * @author bgonzale @@ -509,6 +511,11 @@ public abstract class AbstractArchiveDlg extends CaveSWTDialog implements @Override public void run() { + // If the dialog has been disposed then return. + if (isDisposed()) { + return; + } + try { if (displayDatas != null) { tableComp.populateTable(archiveName, categoryName, @@ -676,6 +683,11 @@ public abstract class AbstractArchiveDlg extends CaveSWTDialog implements @Override public void run() { + // If the dialog has been disposed then return. + if (isDisposed()) { + return; + } + tableComp.updateSize(myDisplayDatas); updateTotals(null); }