Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2007-04-02 18:20:40 +0000
committerrelves2007-04-02 18:20:40 +0000
commite673146c81c3c941c8739f9e3b354a15556b5976 (patch)
treeb4bbefe563019c74d7b7fa3764de4ae469cb0200
parenta63c370787d62392d7b90882b437a034d6cb13cd (diff)
downloadorg.eclipse.mylyn.tasks-R_2_0_M2.tar.gz
org.eclipse.mylyn.tasks-R_2_0_M2.tar.xz
org.eclipse.mylyn.tasks-R_2_0_M2.zip
ASSIGNED - bug 178678: Activity vs. Sheduled model in Task List viewR_2_0_M2
https://bugs.eclipse.org/bugs/show_bug.cgi?id=178678
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskListManager.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskListManager.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskListManager.java
index baaf4ec3a..d0daac143 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskListManager.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskListManager.java
@@ -387,7 +387,7 @@ public class TaskListManager implements IPropertyChangeListener {
currentHandle = event.getStructureHandle();
}
} else if (event.getStructureHandle().equals(MylarContextManager.ACTIVITY_HANDLE_ATTENTION)) {
- if (!currentHandle.equals("")) {
+ if (currentTask != null && !currentHandle.equals("")) {
long active = event.getEndDate().getTime() - event.getDate().getTime();
// add to running total
@@ -405,7 +405,6 @@ public class TaskListManager implements IPropertyChangeListener {
} else {
taskElapsedTimeMap.put(currentTask, active);
}
-
}
}

Back to the top