Project

General

Profile

« Previous | Next » 

Revision 8e0843b5

Added by Patrick Plitzner over 6 years ago

Fix potential NPE when no session is active when opening specimen editor

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/DerivateView.java
259 259
                derivates = CdmStore.getService(IOccurrenceService.class).load(new ArrayList(derivativeUuids), SPECIMEN_INIT_STRATEGY);
260 260
            }
261 261
            updateRootEntities(derivates);
262
            previousCdmEntitySession.bind();
262
            if(previousCdmEntitySession!=null){
263
                previousCdmEntitySession.bind();
264
            }
263 265
        }
264 266
    }
265 267

  

Also available in: Unified diff