Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Stryker2016-01-11 21:36:10 +0000
committerJeff Johnston2016-01-20 22:59:31 +0000
commit411d6fb09923469b27943f58e990a6c029167751 (patch)
tree56f39572f2c23d551ce4ff4b11883c27f8d28313
parentc781ec59c97769f12529e76f724a2b730b770821 (diff)
downloadorg.eclipse.linuxtools-411d6fb09923469b27943f58e990a6c029167751.tar.gz
org.eclipse.linuxtools-411d6fb09923469b27943f58e990a6c029167751.tar.xz
org.eclipse.linuxtools-411d6fb09923469b27943f58e990a6c029167751.zip
Bug 485578 - disposed widget on view refresh
Change-Id: I54c6cf02ffa7b68c2e9a0a1b0c5fe4bafe96eb34 Signed-off-by: Rob Stryker <rob.stryker@jboss.com> Reviewed-on: https://git.eclipse.org/r/64079 Tested-by: Hudson CI Reviewed-by: Jeff Johnston <jjohnstn@redhat.com> Reviewed-on: https://git.eclipse.org/r/64741
-rw-r--r--containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/DockerExplorerView.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/DockerExplorerView.java b/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/DockerExplorerView.java
index 540086eec2..cfdd7b8f36 100644
--- a/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/DockerExplorerView.java
+++ b/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/DockerExplorerView.java
@@ -347,7 +347,9 @@ public class DockerExplorerView extends CommonNavigator implements
@Override
public void run() {
- getCommonViewer().refresh(connection, true);
+ if (getCommonViewer().getTree() != null
+ && !getCommonViewer().getTree().isDisposed())
+ getCommonViewer().refresh(connection, true);
}
});
}

Back to the top