Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Davis2015-11-09 13:48:51 -0500
committerSam Davis2015-11-09 13:48:51 -0500
commitefe51b8a1fc71c3db86d28c7e4f82c838b8a4ae0 (patch)
treefa74446276af0f7c52da0c896b8f9473836cd915
parent8c5430a89c374befd9f4decba3e6653a52eca743 (diff)
downloadorg.eclipse.mylyn.tasks-efe51b8a1fc71c3db86d28c7e4f82c838b8a4ae0.tar.gz
org.eclipse.mylyn.tasks-efe51b8a1fc71c3db86d28c7e4f82c838b8a4ae0.tar.xz
org.eclipse.mylyn.tasks-efe51b8a1fc71c3db86d28c7e4f82c838b8a4ae0.zip
481759: NullPointerException in TaskActivateAction.run (47)
Change-Id: Ibe9df58a9d8eb182475cac44de21292c755fbd16 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=481759
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/TaskActivateAction.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/TaskActivateAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/TaskActivateAction.java
index 423a33910..2e208d559 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/TaskActivateAction.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/TaskActivateAction.java
@@ -44,7 +44,10 @@ public class TaskActivateAction extends BaseSelectionListenerAction implements I
@Override
public void run() {
- run(TaskListView.getFromActivePerspective().getSelectedTask());
+ TaskListView taskListView = TaskListView.getFromActivePerspective();
+ if (taskListView != null) {
+ run(taskListView.getSelectedTask());
+ }
}
@Deprecated

Back to the top