Project

General

Profile

Revision 50d185e6

ID50d185e6ff428c91933a91ce7c3eca2bac9c50ee
Parent 05771712
Child 8a44985c

Added by Katja Luther about 2 months ago

avoid NullPointerExceptions

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/DescriptiveDataSetService.java
461 461
     */
462 462
    private void removeDescriptionFromDataSet(DeleteResult result, DescriptiveDataSet dataSet,
463 463
            DescriptionBase description) {
464
        if (description == null){
465
            return;
466
        }
464 467
        boolean success = dataSet.removeDescription(description);
465 468
        result.addDeletedObject(description);// remove taxon description with IndividualsAssociation from data set
466 469
        if(description instanceof SpecimenDescription){

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)