fix #5421
authorKatja Luther <k.luther@bgbm.org>
Thu, 17 Mar 2016 11:54:51 +0000 (12:54 +0100)
committerKatja Luther <k.luther@bgbm.org>
Thu, 17 Mar 2016 11:54:51 +0000 (12:54 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/AbstractCdmViewPart.java

index 35483a8723e72c7789b96de3dada2b63af60e448..15a1841fb86c1db5d9a37528be18635be1a8ff3b 100644 (file)
@@ -109,8 +109,12 @@ public abstract class AbstractCdmViewPart extends ViewPart implements ISelection
         this.part = part;
 
         Object element = selection.getFirstElement();
-               getViewer().setInput(element);
-               showViewer();
+      //avoid widget is disposed exceptions
+        if (getViewer().getControl().isDisposed()){
+            return;
+        }
+        getViewer().setInput(element);
+        showViewer();
     }
 
     /**