Project

General

Profile

Revision f8fea9b6

IDf8fea9b60b8ed0cade837c35aa89a5f5ac6e6d9d
Parent 983949ab
Child ba989ecb

Added by Patrick Plitzner almost 2 years ago

Fix potential NPE

View differences:

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

Add picture from clipboard (Maximum size: 40 MB)