diff options
author | spingel | 2008-05-27 04:40:19 +0000 |
---|---|---|
committer | spingel | 2008-05-27 04:40:19 +0000 |
commit | ea831752ea1d851dbe3b549a6de1b48954f0e477 (patch) | |
tree | dbbf67a8cb3eef7764b408d387bcc0cdaae3f01f /org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskMapper.java | |
parent | 19ab33f48055164ed5c9f076539a917749901eae (diff) | |
download | org.eclipse.mylyn.tasks-ea831752ea1d851dbe3b549a6de1b48954f0e477.tar.gz org.eclipse.mylyn.tasks-ea831752ea1d851dbe3b549a6de1b48954f0e477.tar.xz org.eclipse.mylyn.tasks-ea831752ea1d851dbe3b549a6de1b48954f0e477.zip |
NEW - bug 212209: provide a flexible bug reporting facility
https://bugs.eclipse.org/bugs/show_bug.cgi?id=212209
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskMapper.java')
-rw-r--r-- | org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskMapper.java | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskMapper.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskMapper.java index 0a663fe96..ac35cfb93 100644 --- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskMapper.java +++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskMapper.java @@ -279,10 +279,18 @@ public class TaskMapper implements ITaskMapping { copyAttributeValue(sourceAttribute, this.getTaskData().getRoot().getAttribute(sourceAttribute.getId())); } } else { - setDescription(source.getDescription()); - setSummary(source.getSummary()); - setPriority(getPriority()); - setProduct(getProduct()); + if (source.getDescription() != null) { + setDescription(source.getDescription()); + } + if (source.getSummary() != null) { + setSummary(source.getSummary()); + } + if (source.getPriority() != null) { + setPriority(source.getPriority()); + } + if (source.getProduct() != null) { + setProduct(source.getProduct()); + } } // targetTaskData.setSummary(sourceTaskData.getSummary()); // targetTaskData.setDescription(sourceTaskData.getDescription()); |