Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Coulon2016-11-29 11:11:13 +0000
committerJeff Johnston2016-11-29 20:31:09 +0000
commit83736cee4b5c9075baf4864aa50bc43e5f0de468 (patch)
tree9644aab8b3166a00b7ab9a3dbc27f74339392ad6
parent02a5165ad69bdf29daad24ed1a2be147633f7a61 (diff)
downloadorg.eclipse.linuxtools-83736cee4b5c9075baf4864aa50bc43e5f0de468.tar.gz
org.eclipse.linuxtools-83736cee4b5c9075baf4864aa50bc43e5f0de468.tar.xz
org.eclipse.linuxtools-83736cee4b5c9075baf4864aa50bc43e5f0de468.zip
Bug 508268 - IllegalStateException below DockerImagesView$7.lambda$0
Verifying that the viewer's underlying control is not disposed before setting the input. Change-Id: I6520c4becd91524086ef493d191acd777dad6c7d Signed-off-by: Xavier Coulon <xcoulon@redhat.com> Reviewed-on: https://git.eclipse.org/r/85924 Tested-by: Hudson CI Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
-rw-r--r--containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/DockerImagesView.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/DockerImagesView.java b/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/DockerImagesView.java
index ad034774db..c02a72bea9 100644
--- a/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/DockerImagesView.java
+++ b/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/DockerImagesView.java
@@ -456,8 +456,10 @@ public class DockerImagesView extends ViewPart implements IDockerImageListener,
connection.getImages(true);
connection.addImageListener(DockerImagesView.this);
Display.getDefault().asyncExec(() -> {
- viewer.setInput(connection);
- refreshViewTitle();
+ if (!viewer.getControl().isDisposed()) {
+ viewer.setInput(connection);
+ refreshViewTitle();
+ }
});
return Status.OK_STATUS;
}

Back to the top