Project

General

Profile

Revision 4e6fc7d5

ID4e6fc7d50b5bbaf9acd1c8c9af71207861784734
Parent f61c00e5
Child f2ae523b

Added by Patrick Plitzner over 1 year 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)