From 8581d940c9d89088455ac601c9bf0d11e5b457e9 Mon Sep 17 00:00:00 2001 From: Frank Becker Date: Tue, 3 Feb 2015 20:48:17 +0100 Subject: 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 --- .../bugzilla/core/SaxMultiBugReportContentHandler.java | 10 +++++----- 1 file 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); -- cgit v1.2.3