Project

General

Profile

Revision 7e2eb03a

ID7e2eb03aa64f9342a283239da04604d24498255a
Parent 5e819507
Child 44952742

Added by Katja Luther about 2 months ago

fix NPE in taxonnode wizard

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/TaxonNodeDetailElement.java
340 340
                taxon.setSec(selection_SecRef.getEntity());
341 341
            }
342 342
        } else if (eventSource == microReference) {
343
            getEntity().getTaxon().setSecMicroReference(microReference.getText());
343
            if (taxon != null){
344
                taxon.setSecMicroReference(microReference.getText());
345
            }
344 346

  
345 347
        }  else if (eventSource == checkbox_publish) {
346 348
            if (taxon != null){
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/TaxonNodeWizardPage.java
142 142
	        secUuid = ((TaxonNodeDetailElement) getDetailElement()).getSecReference().getUuid();
143 143
	    }
144 144
	    boolean isPublish = ((TaxonNodeDetailElement) getDetailElement()).is_publish();
145
	    String secMicroReference = ((TaxonNodeDetailElement) getDetailElement()).getMicroReference();
145 146

  
146

  
147
	    CreateTaxonDTO createDto = new CreateTaxonDTO(nameUuid, secUuid,null,false, null,isPublish,
147
	    CreateTaxonDTO createDto = new CreateTaxonDTO(nameUuid, secUuid,secMicroReference,false, null,isPublish,
148 148
	            taxonNameString, PreferencesUtil.getPreferredNomenclaturalCode(), null);
149 149

  
150 150
        return createDto;

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)