Project

General

Profile

« Previous | Next » 

Revision 97542d84

Added by Patrick Plitzner about 8 years ago

Fix potential Widget is disposed exception

View differences:

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