Revision f8fea9b6
Added by Patrick Plitzner about 5 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/DescriptiveDataSetService.java | ||
---|---|---|
358 | 358 |
|
359 | 359 |
// delete existing aggregation description, if present |
360 | 360 |
TaxonDescription aggregation = findTaxonDescriptionByMarkerType(dataSet, taxon, MarkerType.COMPUTED()); |
361 |
removeDescription(aggregation.getUuid(), descriptiveDataSetUuid); |
|
361 |
if(aggregation!=null){ |
|
362 |
removeDescription(aggregation.getUuid(), descriptiveDataSetUuid); |
|
363 |
} |
|
362 | 364 |
|
363 | 365 |
// create new aggregation |
364 | 366 |
TaxonDescription description = TaxonDescription.NewInstance(taxon); |
Also available in: Unified diff
Fix potential NPE