Project

General

Profile

« Previous | Next » 

Revision ac20911d

Added by Patrick Plitzner over 6 years ago

Fix potential NPE

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/details/DetailsViewerE4.java
319 319
            createUserSection(rootElement);
320 320
        } else if (input instanceof Group) {
321 321
            createGroupSection(rootElement);
322
        } else if (input instanceof TaxonRelationship && ((TaxonRelationship)input).getType().equals(TaxonRelationshipType.MISAPPLIED_NAME_FOR())) {
322
        } else if (input instanceof TaxonRelationship && ((TaxonRelationship)input).getType()!=null
323
                && ((TaxonRelationship)input).getType().equals(TaxonRelationshipType.MISAPPLIED_NAME_FOR())) {
323 324
            createMisappliedNameSection(rootElement);
324 325
        }else if (input instanceof TaxonRelationship ) {
325 326
            createTaxonRelationshipSection(rootElement);

Also available in: Unified diff