Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-05-27 04:40:19 +0000
committerspingel2008-05-27 04:40:19 +0000
commitea831752ea1d851dbe3b549a6de1b48954f0e477 (patch)
treedbbf67a8cb3eef7764b408d387bcc0cdaae3f01f /org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskMapper.java
parent19ab33f48055164ed5c9f076539a917749901eae (diff)
downloadorg.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.java16
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());

Back to the top