- fixed class cast exception
authorPatric Plitzner <p.plitzner@bgbm.org>
Wed, 29 Oct 2014 14:50:10 +0000 (14:50 +0000)
committerPatric Plitzner <p.plitzner@bgbm.org>
Wed, 29 Oct 2014 14:50:10 +0000 (14:50 +0000)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/handler/DeleteDerivateHandler.java

index 1542fb204a105f217549ea9b62585074240c008a..7f8cc9be4ccb609c35e9b123337b0dd8488a510f 100644 (file)
@@ -61,7 +61,7 @@ public class DeleteDerivateHandler extends AbstractHandler {
                     TreeNode treeNode = (TreeNode)object;
                     Object value = ((TreeNode) object).getValue();
                     if(value instanceof SpecimenOrObservationBase<?> || value instanceof Sequence || value instanceof SingleRead){
-                        DeleteDerivateOperation deleteDerivateOperation = new DeleteDerivateOperation(label, undoContext, (CdmBase) object, postOperationEnabled);
+                        DeleteDerivateOperation deleteDerivateOperation = new DeleteDerivateOperation(label, undoContext, (CdmBase) value, postOperationEnabled);
                         AbstractUtility.executeOperation(deleteDerivateOperation);
                     }
                 }