Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2011-11-04 14:59:51 -0400
committerFrank Becker2011-11-05 04:38:14 -0400
commit73b25877f99d185eac7c66ba4d4e3aea0c0c5e85 (patch)
tree599e9fd6d0e622014f8dc83bfc3d0af39e6fd63d
parentcd4c934e19c57b5e36313f1e8f60ca3c48f92d38 (diff)
downloadorg.eclipse.mylyn.tasks-73b25877f99d185eac7c66ba4d4e3aea0c0c5e85.tar.gz
org.eclipse.mylyn.tasks-73b25877f99d185eac7c66ba4d4e3aea0c0c5e85.tar.xz
org.eclipse.mylyn.tasks-73b25877f99d185eac7c66ba4d4e3aea0c0c5e85.zip
ASSIGNED - bug 362712: Error parsing response from xmlrpc.cgi
https://bugs.eclipse.org/bugs/show_bug.cgi?id=362712
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/service/BugzillaXmlRpcClient.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/service/BugzillaXmlRpcClient.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/service/BugzillaXmlRpcClient.java
index 91ea94093..832676f7d 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/service/BugzillaXmlRpcClient.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/service/BugzillaXmlRpcClient.java
@@ -397,7 +397,14 @@ public class BugzillaXmlRpcClient extends CommonXmlRpcClient {
continue;
}
if (values instanceof HashMap<?, ?>) {
- defaultMilestone = (String) ((HashMap<?, ?>) values).get("defaultmilestone"); //$NON-NLS-1$
+ Object defaultMilestoneObj = ((HashMap<?, ?>) values).get("defaultmilestone"); //$NON-NLS-1$
+ if (defaultMilestoneObj instanceof String) {
+ defaultMilestone = (String) defaultMilestoneObj;
+ } else if (defaultMilestoneObj instanceof Double) {
+ defaultMilestone = ((Double) defaultMilestoneObj).toString();
+ } else if (defaultMilestoneObj instanceof Integer) {
+ defaultMilestone = ((Integer) defaultMilestoneObj).toString();
+ }
}
if (product != null && !product.equals("") //$NON-NLS-1$
&& defaultMilestone != null && !defaultMilestone.equals("")) { //$NON-NLS-1$

Back to the top