Project

General

Profile

« Previous | Next » 

Revision 2a62fead

Added by Katja Luther over 6 years ago

avoid widgetIsDisposed exceptions by check of control is disposed

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/key/polytomous/e4/PolytomousKeyListEditorE4.java
271 271

  
272 272
	@Focus
273 273
	public void setFocus() {
274
	    if(viewer!=null && viewer.getControl()!=null){
274
	    if(viewer!=null && viewer.getControl()!=null && !viewer.getControl().isDisposed()) {
275 275
	        viewer.getControl().setFocus();
276 276
	    }
277 277
	    if(input!=null){

Also available in: Unified diff