Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2011-10-16 07:26:01 +0000
committerFrank Becker2011-10-16 07:26:01 +0000
commit75e40b12c9e584c3ac6f109e1763c1e882dba907 (patch)
treee2558fc9699548bbb985a21dace6679fc4d2f3c1 /org.eclipse.mylyn.bugzilla.core
parent9bf7a5a0aff59e9e3c5c7621a7f80f15385d586d (diff)
downloadorg.eclipse.mylyn.tasks-75e40b12c9e584c3ac6f109e1763c1e882dba907.tar.gz
org.eclipse.mylyn.tasks-75e40b12c9e584c3ac6f109e1763c1e882dba907.tar.xz
org.eclipse.mylyn.tasks-75e40b12c9e584c3ac6f109e1763c1e882dba907.zip
ASSIGNED - bug 242739: add support for custom priority levels (ie. if
not using P1-P5) https://bugs.eclipse.org/bugs/show_bug.cgi?id=242739 Change-Id: Iedfbd7763f15942c9a3985d2e5ee737c3ed6be40
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core')
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java
index 91237081f..bd59cdf71 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java
@@ -666,8 +666,13 @@ public class BugzillaRepositoryConnector extends AbstractRepositoryConnector {
@Override
public PriorityLevel getPriorityLevel() {
RepositoryConfiguration repositoryConfiguration = BugzillaRepositoryConnector.this.getRepositoryConfiguration(taskData.getRepositoryUrl());
- List<String> priorities = repositoryConfiguration.getPriorities();
String priority = getPriority();
+ if (repositoryConfiguration == null) {
+ // When we did not have the configuration we only can use the standard Priorities
+ // Did not know how the configuration can be null here
+ return getTaskPriority(priority);
+ }
+ List<String> priorities = repositoryConfiguration.getPriorities();
return BugzillaRepositoryConnector.getTaskPriority(priority, priorities);
}
};

Back to the top