Revision 97542d84
Added by Patrick Plitzner about 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/AbstractCdmViewPart.java | ||
---|---|---|
110 | 110 |
|
111 | 111 |
Object element = selection.getFirstElement(); |
112 | 112 |
//avoid widget is disposed exceptions |
113 |
if (getViewer().getControl().isDisposed()){ |
|
113 |
if (getViewer().getControl()==null || getViewer().getControl().isDisposed()){
|
|
114 | 114 |
return; |
115 | 115 |
} |
116 | 116 |
getViewer().setInput(element); |
Also available in: Unified diff
Fix potential Widget is disposed exception