aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-04-14 17:24:49 (EDT)
committerChris Aniszczyk2011-04-15 11:06:05 (EDT)
commitc3d1a3ba9603b6702673fdba90e2d5d83942f3aa (patch)
tree678ae07d03a584a205289ac98f6d7be108c459d5
parentdb4be004d85d0c37f62f5be2bf4401da9666166d (diff)
downloadegit-github-c3d1a3ba9603b6702673fdba90e2d5d83942f3aa.zip
egit-github-c3d1a3ba9603b6702673fdba90e2d5d83942f3aa.tar.gz
egit-github-c3d1a3ba9603b6702673fdba90e2d5d83942f3aa.tar.bz2
Only set description task attribute if non-nullrefs/changes/27/3127/4
Change-Id: Idbec391afcdb65009ee58d8b63e814254dd969d8 Signed-off-by: Kevin Sawicki <kevin@github.com> Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
-rw-r--r--org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java
index fa0311b..da9e3a3 100644
--- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java
+++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java
@@ -30,8 +30,8 @@ import org.eclipse.mylyn.github.internal.User;
import org.eclipse.mylyn.tasks.core.IRepositoryPerson;
import org.eclipse.mylyn.tasks.core.ITaskMapping;
import org.eclipse.mylyn.tasks.core.RepositoryResponse;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.core.RepositoryResponse.ResponseKind;
+import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.core.data.AbstractTaskDataHandler;
import org.eclipse.mylyn.tasks.core.data.TaskAttachmentMapper;
import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
@@ -108,8 +108,9 @@ public class GistTaskDataHandler extends AbstractTaskDataHandler {
mapper.setValue(key, gist.getRepo());
TaskAttribute description = GistAttribute.DESCRIPTION.create(data);
- if(description != null)
- mapper.setValue(description, gist.getDescription());
+ String gistDescription = gist.getDescription();
+ if (gistDescription != null)
+ mapper.setValue(description, gistDescription);
TaskAttribute created = GistAttribute.CREATED.create(data);
mapper.setDateValue(created, gist.getCreatedAt());