Project

General

Profile

« Previous | Next » 

Revision 79eb8142

Added by Patrick Plitzner almost 6 years ago

Fix potential NPE

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/CdmFormFactory.java
2833 2833

  
2834 2834
        //check for parent section when entity is null
2835 2835
        //this happens when AbstractUnboundEntityCollectionSection is used
2836
        if(entity==null){
2836
        if(element==null){
2837 2837
            if(parentElement instanceof ScopeSection || parentElement instanceof ScopeRestrictionSection){
2838 2838
                element = new ScopeElement(this,
2839 2839
                        parentElement,

Also available in: Unified diff