Project

General

Profile

Revision b6ebeb25

IDb6ebeb25fabc74d13363001efe943c0609ee76a4
Parent f8139f49
Child a1171a3c

Added by Patrick Plitzner 12 months ago

add check for potential session exception

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/AbstractCdmEditorPartE4.java
204 204
    }
205 205

  
206 206
    protected void showViewer(IStructuredSelection selection, MPart activePart, Viewer viewer){
207

  
207
        if(CdmStore.getCurrentSessionManager().getActiveSession()==null){
208
            return;
209
        }
208 210
        if(viewer!=null && viewer.getControl()!=null && !viewer.getControl().isDisposed()){
209 211
            Object element = selection.getFirstElement();
210 212
            Object part = createPartObject(activePart);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)