Project

General

Profile

« Previous | Next » 

Revision 638a7036

Added by Katja Luther over 1 year ago

fix NPE

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/reference/OriginalSourceElement.java
114 114
        if (eventSource.equals(selection_Ref)){
115 115

  
116 116
            getEntity().setCitation(selection_Ref.getEntity());
117
            ReferenceType newRefType = getEntity().getCitation().getType();
118
            if (refType != null && refType.isDynamic() ^ getEntity().getCitation().getType().isDynamic()) {
117
         
118
            ReferenceType newRefType = getEntity().getCitation() != null? getEntity().getCitation().getType(): null;
119
            if (refType != null && refType.isDynamic()^(newRefType!= null && newRefType.isDynamic()) ){
119 120
            	this.refresh();
120
//            	this.getParentElement().refresh();
121 121
            }
122 122
            refType = newRefType;
123 123
        }else if (eventSource.equals(microReference)){

Also available in: Unified diff