Revision 2a62fead
Added by Katja Luther over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/e4/DefinedTermEditorE4.java | ||
---|---|---|
162 | 162 |
|
163 | 163 |
@Focus |
164 | 164 |
public void setFocus() { |
165 |
if(viewer!=null){ |
|
165 |
if(viewer!=null && viewer.getControl() != null && !viewer.getControl().isDisposed()){
|
|
166 | 166 |
viewer.getControl().setFocus(); |
167 | 167 |
} |
168 | 168 |
if(conversation!=null){ |
Also available in: Unified diff
avoid widgetIsDisposed exceptions by check of control is disposed