Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Davis2012-09-11 18:52:47 -0400
committerSteffen Pingel2012-09-11 18:52:47 -0400
commit8e0212d19495b6827fae5b4354775437d9a1ebf9 (patch)
tree3fc35cf4d939f8f742179dc62a46d51c0354bf25 /org.eclipse.mylyn.tasks.ui
parentc9b012596bc6e7ab0190895f4819ee2740037db5 (diff)
downloadorg.eclipse.mylyn.tasks-8e0212d19495b6827fae5b4354775437d9a1ebf9.tar.gz
org.eclipse.mylyn.tasks-8e0212d19495b6827fae5b4354775437d9a1ebf9.tar.xz
org.eclipse.mylyn.tasks-8e0212d19495b6827fae5b4354775437d9a1ebf9.zip
Fix NPE in TaskTrimWidget.
Change-Id: I6a3748b5b2dfa943ecde474049742341e512b13a Task-URL: https://bugs.eclipse.org/bugs/show_bug.cgi?id=389348
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskTrimWidget.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskTrimWidget.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskTrimWidget.java
index 89fd48932..547427c8e 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskTrimWidget.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskTrimWidget.java
@@ -238,7 +238,7 @@ public class TaskTrimWidget extends WorkbenchWindowControlContribution {
}
public void indicateActiveTask() {
- if (activeTaskLabel != null && activeTaskLabel.isDisposed()) {
+ if (activeTaskLabel == null || activeTaskLabel.isDisposed()) {
return;
}
@@ -250,7 +250,7 @@ public class TaskTrimWidget extends WorkbenchWindowControlContribution {
}
public void indicateNoActiveTask() {
- if (activeTaskLabel != null && activeTaskLabel.isDisposed()) {
+ if (activeTaskLabel == null || activeTaskLabel.isDisposed()) {
return;
}

Back to the top