Revision a53c0e28
Added by Andreas Kohlbecker about 5 years ago
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
fix #8064 fixing NPE in AbstractHibernateTaxonGraphProcessor.assureSingleTaxon() - taxa may be missing a sec ref