Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ritchie2016-06-13 15:33:10 -0400
committerColin Ritchie2016-06-13 16:40:54 -0400
commitc4190b85fc844b697cb694f0e19dd44b8a41cdf8 (patch)
tree1bca836c79f72c94235b4ae5670e765bbb067e1e
parentee58f27b5dd6f493a23240024655e8d37293356d (diff)
downloadorg.eclipse.mylyn.tasks-R_3_20_0.tar.gz
org.eclipse.mylyn.tasks-R_3_20_0.tar.xz
org.eclipse.mylyn.tasks-R_3_20_0.zip
Fix an NPE in TaskDataStateR_3_20_0
-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