Project

General

Profile

Revision a53c0e28

IDa53c0e28c0e061f1abf2837042f1a933c7fdba50
Parent 07ac49bc
Child f08b6366

Added by Andreas Kohlbecker about 2 years ago

fix #8064 fixing NPE in AbstractHibernateTaxonGraphProcessor.assureSingleTaxon() - taxa may be missing a sec ref

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/taxonGraph/AbstractHibernateTaxonGraphProcessor.java
219 219
        Taxon taxon = null;
220 220
        Set<Taxon> taxa = new HashSet<>();
221 221
        for(Taxon t : taxonName.getTaxa()){
222
            if(t.getSec().getUuid().equals(secRefUuid)){
222
            if(t.getSec() != null && t.getSec().getUuid().equals(secRefUuid)){
223 223
                taxa.add(t);
224 224
            }
225 225
        }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)