Project

General

Profile

« Previous | Next » 

Revision ecf88434

Added by Patrick Plitzner over 5 years ago

Fix potential NPE

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrixBottomToolbar.java
95 95

  
96 96
                        //add taxon description
97 97
                        TaxonRowWrapperDTO taxonDescription = rowWrapper.getDefaultTaxonDescription();
98
                        matrix.getDescriptiveDataSet().addDescription(taxonDescription.getDescription());
99
                        matrix.getCdmEntitiySession().load(taxonDescription.getDescription(), true);
98
                        if(taxonDescription!=null){
99
                            matrix.getDescriptiveDataSet().addDescription(taxonDescription.getDescription());
100
                            matrix.getCdmEntitiySession().load(taxonDescription.getDescription(), true);
101
                        }
100 102

  
101 103
                        matrix.setDirty();
102 104
                        matrix.getSpecimenCache().remove(wrapper);

Also available in: Unified diff