fix #8234: moveDescriptionOperation should be executed while saving
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / view / descriptive / operation / MoveDescriptionToOtherTaxonOperation.java
index 82345999406b3cbcfdf00239ad8aa08cc70cf757..52247f578ab0c847072db30ff2249aeb59e36a6a 100644 (file)
@@ -67,10 +67,14 @@ public class MoveDescriptionToOtherTaxonOperation extends
        @Override
        public IStatus execute(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
-               monitor.worked(20);
+           if (monitor != null){
+               monitor.worked(20);
+           }
                bind();
                CdmStore.getService(IDescriptionService.class).moveTaxonDescription(description.getUuid(), newAcceptedTaxonNode.getTaxon().getUuid());
-               monitor.worked(40);
+               if (monitor != null){
+            monitor.worked(40);
+        }
 
                return postExecute(description);
        }