Project

General

Profile

« Previous | Next » 

Revision e28f6b05

Added by Patrick Plitzner about 6 years ago

ref #7095 Fix possible NPE

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/workingSet/matrix/CharacterMatrix.java
213 213

  
214 214
    public void init(UUID workingSetUuid) {
215 215
        this.workingSet = CdmStore.getService(IWorkingSetService.class).load(workingSetUuid, WS_PROPERTY_PATH);
216
        if(workingSet.getDescriptiveSystem()==null){
217
            MessagingUtils.informationDialog("Editor could not be opened", "The working set has no feature tree selected.");
218
            return;
219
        }
216 220
        thisPart.setLabel(workingSet.getLabel());
217 221

  
218 222
        Composite toolbarComposite = new Composite(parent, SWT.NONE);

Also available in: Unified diff