Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ritchie2016-06-13 15:33:10 -0400
committerColin Ritchie2016-06-13 15:33:10 -0400
commit5a6fd14e29e39048c4421e89d0d760938da4e398 (patch)
tree5c1f0a842ab806b19e84b122a3801a38a0551c4d /org.eclipse.mylyn.tasks.core/src/org/eclipse
parentfbeec07e000d6c4d888bdd643237c06a6d6ebf21 (diff)
downloadorg.eclipse.mylyn.tasks-5a6fd14e29e39048c4421e89d0d760938da4e398.tar.gz
org.eclipse.mylyn.tasks-5a6fd14e29e39048c4421e89d0d760938da4e398.tar.xz
org.eclipse.mylyn.tasks-5a6fd14e29e39048c4421e89d0d760938da4e398.zip
Fix an NPE in TaskDataState
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src/org/eclipse')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataState.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataState.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataState.java
index 9cca8ae93..ee39a1b34 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataState.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataState.java
@@ -221,6 +221,9 @@ public class TaskDataState implements ITaskDataWorkingCopy {
}
public static TaskData createCopy(TaskData oldData) {
+ if (oldData == null) {
+ return null;
+ }
return createCopy(oldData, oldData.getTaskId());
}

Back to the top