Project

General

Profile

« Previous | Next » 

Revision 7fee6b88

Added by Andreas Müller over 2 years ago

ref #7980 fix NoSuchElement exception (cont.)

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/description/StructuredDescriptionAggregation.java
245 245
                    .findFirst();
246 246
            if (matchingElement.isPresent()){
247 247
                mergeDescriptionElement(matchingElement.get(), newElementClone);
248
                elementsToRemove.remove(matchingElement);
248
                elementsToRemove.remove(matchingElement.get());
249 249
            }else{
250
                newSourceDescription.addElement(newElementClone);
250
                existingSourceDescription.addElement(newElementClone);
251 251
            }
252 252
        }
253 253
        addSourceDescriptionToDescribedEntity(newSourceDescription);

Also available in: Unified diff