#4658
authorKatja Luther <k.luther@bgbm.org>
Mon, 23 Feb 2015 08:40:10 +0000 (08:40 +0000)
committerKatja Luther <k.luther@bgbm.org>
Mon, 23 Feb 2015 08:40:10 +0000 (08:40 +0000)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/operation/DeleteTaxonDescriptionOperation.java

index fabd4d9358a0119eeab07cdc506b224eca737e05..5324d4e40d18cc2537133b33fd2b0237dee23ff7 100644 (file)
@@ -58,11 +58,12 @@ public class DeleteTaxonDescriptionOperation extends AbstractPostTaxonOperation
                        throws ExecutionException {
 
                monitor.worked(20);
-               element.removeDescription(description);
-               monitor.worked(40);
-               CdmStore.getService(IDescriptionService.class).delete(description);
-
-               return postExecute(description);
+               if (description != null){
+                       CdmStore.getService(IDescriptionService.class).deleteDescription(description);
+                       return postExecute(description);
+               }
+               return null;
+               
        }
 
        /* (non-Javadoc)