Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2010-08-15 03:30:19 -0400
committerfbecker2010-08-15 03:30:19 -0400
commit1d50a596eee74e568b1bd88d272dd234ed363766 (patch)
tree9644f8a4eef16858609b375e8feef56442e9a89a
parentc688eb78002a2f37cc4d866ec57fbbcaac916333 (diff)
downloadorg.eclipse.mylyn.tasks-1d50a596eee74e568b1bd88d272dd234ed363766.tar.gz
org.eclipse.mylyn.tasks-1d50a596eee74e568b1bd88d272dd234ed363766.tar.xz
org.eclipse.mylyn.tasks-1d50a596eee74e568b1bd88d272dd234ed363766.zip
RESOLVED - bug 314744: support defaultmilestone from Product.get XMLRPC
https://bugs.eclipse.org/bugs/show_bug.cgi?id=314744 Correction: NPE xmlRpcClient
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java
index 565a6489e..2dab796ae 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java
@@ -707,8 +707,14 @@ public class BugzillaClient {
if (!repositoryConfiguration.getProducts().isEmpty()) {
repositoryConfiguration.setRepositoryUrl(repositoryUrl.toString());
}
- xmlRpcClient.updateConfiguration(monitor, repositoryConfiguration,
- configParameters.get(IBugzillaConstants.BUGZILLA_DESCRIPTOR_FILE));
+ if (xmlRpcClient != null) {
+ xmlRpcClient.updateConfiguration(monitor, repositoryConfiguration,
+ configParameters.get(IBugzillaConstants.BUGZILLA_DESCRIPTOR_FILE));
+ } else {
+ repositoryConfiguration.setValidTransitions(monitor,
+ configParameters.get(IBugzillaConstants.BUGZILLA_DESCRIPTOR_FILE), null);
+ }
+
if (!repositoryConfiguration.getProducts().isEmpty()) {
return repositoryConfiguration;
} else {

Back to the top