Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-01-15 00:45:12 -0500
committermkersten2007-01-15 00:45:12 -0500
commite901292ae2d165e97cf0c44768553dbaaae1c54a (patch)
tree1648d722275b2427da2c9b467eb667f7f5543a4a /org.eclipse.mylyn.tasks.core
parentee2393d7987d8be07a9803ff17be045f98ca6401 (diff)
downloadorg.eclipse.mylyn.tasks-e901292ae2d165e97cf0c44768553dbaaae1c54a.tar.gz
org.eclipse.mylyn.tasks-e901292ae2d165e97cf0c44768553dbaaae1c54a.tar.xz
org.eclipse.mylyn.tasks-e901292ae2d165e97cf0c44768553dbaaae1c54a.zip
RESOLVED - bug 170388: Could not create New Repository Task editor for Bugzilla
https://bugs.eclipse.org/bugs/show_bug.cgi?id=170388
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java
index 8a68bf7d0..69aa7b39b 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java
@@ -372,8 +372,15 @@ public class TaskList {
return getAllTasks().size() == 0 && archiveIsEmpty && getQueries().size() == 0;
}
+ /**
+ * @return null if no such task.
+ */
public ITask getTask(String handleIdentifier) {
- return tasks.get(handleIdentifier);
+ if (handleIdentifier == null) {
+ return null;
+ } else {
+ return tasks.get(handleIdentifier);
+ }
}
public AbstractTaskContainer getContainerForHandle(String categoryHandle) {

Back to the top