Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2015-02-03 14:48:17 -0500
committerGerrit Code Review @ Eclipse.org2015-02-04 01:22:44 -0500
commit8581d940c9d89088455ac601c9bf0d11e5b457e9 (patch)
treee269400afb93068587ff5aa4f5b5d1ad2945418d /org.eclipse.mylyn.bugzilla.core/src
parent95b90c8d110129fb6e422ac6a79d2ec75b6bb325 (diff)
downloadorg.eclipse.mylyn.tasks-8581d940c9d89088455ac601c9bf0d11e5b457e9.tar.gz
org.eclipse.mylyn.tasks-8581d940c9d89088455ac601c9bf0d11e5b457e9.tar.xz
org.eclipse.mylyn.tasks-8581d940c9d89088455ac601c9bf0d11e5b457e9.zip
307729: [upstream] support reading and updating the See Also field
Fix an NPE Change-Id: If44cc1e61df8b33b969a20b75269cc9b2e54fc27 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=307729
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core/src')
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java
index 9bf66008e..564fbca15 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java
@@ -173,7 +173,7 @@ public class SaxMultiBugReportContentHandler extends DefaultHandler {
String name = attributes.getValue(ATTRIBUTE_NAME);
if (name != null) {
BugzillaTaskDataHandler.createAttribute(repositoryTaskData, BugzillaAttribute.REPORTER_NAME)
- .setValue(name);
+ .setValue(name);
}
}
break;
@@ -182,7 +182,7 @@ public class SaxMultiBugReportContentHandler extends DefaultHandler {
String name = attributes.getValue(ATTRIBUTE_NAME);
if (name != null) {
BugzillaTaskDataHandler.createAttribute(repositoryTaskData, BugzillaAttribute.QA_CONTACT_NAME)
- .setValue(name);
+ .setValue(name);
}
}
break;
@@ -191,7 +191,7 @@ public class SaxMultiBugReportContentHandler extends DefaultHandler {
String name = attributes.getValue(ATTRIBUTE_NAME);
if (name != null) {
BugzillaTaskDataHandler.createAttribute(repositoryTaskData, BugzillaAttribute.ASSIGNED_TO_NAME)
- .setValue(name);
+ .setValue(name);
}
}
break;
@@ -362,7 +362,7 @@ public class SaxMultiBugReportContentHandler extends DefaultHandler {
}
break;
- // Attachment attributes
+ // Attachment attributes
case ATTACHID:
attachmentAttribute = repositoryTaskData.getRoot().createAttribute(
TaskAttribute.PREFIX_ATTACHMENT + parsedText);
@@ -578,7 +578,7 @@ public class SaxMultiBugReportContentHandler extends DefaultHandler {
TaskAttribute seeAlso = repositoryTaskData.getRoot().getMappedAttribute(
BugzillaAttribute.SEE_ALSO_READ.getKey());
if (seeAlso == null) {
- BugzillaUtil.createAttributeWithKindDefaultIfUsed(null, tag, repositoryTaskData,
+ BugzillaUtil.createAttributeWithKindDefaultIfUsed("", tag, repositoryTaskData,
IBugzillaConstants.BUGZILLA_PARAM_USE_SEE_ALSO, false);
BugzillaUtil.createAttributeWithKindDefaultIfUsed(parsedText, BugzillaAttribute.SEE_ALSO_READ,
repositoryTaskData, IBugzillaConstants.BUGZILLA_PARAM_USE_SEE_ALSO, false);

Back to the top