Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/actions/DeleteAction.java')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/actions/DeleteAction.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/actions/DeleteAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/actions/DeleteAction.java
index f32af1e81..9a1ec4d6d 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/actions/DeleteAction.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/actions/DeleteAction.java
@@ -47,7 +47,8 @@ public class DeleteAction extends Action {
Object selectedObject = ((IStructuredSelection) this.view.getViewer()
.getSelection()).getFirstElement();
if(selectedObject instanceof ITaskListElement &&
- MylarTasksPlugin.getDefault().getContributor().acceptsItem((ITaskListElement)selectedObject)){
+ MylarTasksPlugin.getDefault().getContributor() != null &&
+ MylarTasksPlugin.getDefault().getContributor().acceptsItem((ITaskListElement)selectedObject)){
MylarTasksPlugin.getDefault().getContributor().itemDeleted((ITaskListElement)selectedObject);
}else if (selectedObject instanceof ITask) {
ITask task = (ITask) selectedObject;

Back to the top