Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-02-02 09:25:27 -0500
committerSteffen Pingel2012-02-02 09:25:27 -0500
commit710ae46b882e015addd67a8ddb492a9a12769019 (patch)
treec776bbd66714ec55bb4a7b15e5d5f0162b9e8ec1 /org.eclipse.mylyn.trac.core
parent19a93c87dceaa01f336f6f2537ab3257adde5243 (diff)
downloadorg.eclipse.mylyn.tasks-710ae46b882e015addd67a8ddb492a9a12769019.tar.gz
org.eclipse.mylyn.tasks-710ae46b882e015addd67a8ddb492a9a12769019.tar.xz
org.eclipse.mylyn.tasks-710ae46b882e015addd67a8ddb492a9a12769019.zip
REOPENED - bug 369697: fix test failures on Java 1.7
https://bugs.eclipse.org/bugs/show_bug.cgi?id=369697
Diffstat (limited to 'org.eclipse.mylyn.trac.core')
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskMapper.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskMapper.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskMapper.java
index 3bdb5af14..85da05feb 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskMapper.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskMapper.java
@@ -124,10 +124,14 @@ public class TracTaskMapper extends TaskMapper {
@Override
public PriorityLevel getPriorityLevel() {
- if (client != null) {
- String priority = getPriority();
- TracPriority[] tracPriorities = client.getPriorities();
- return TracRepositoryConnector.getTaskPriority(priority, tracPriorities);
+ String priority = getPriority();
+ if (priority != null) {
+ if (client != null) {
+ TracPriority[] tracPriorities = client.getPriorities();
+ return TracRepositoryConnector.getTaskPriority(priority, tracPriorities);
+ } else {
+ return TracRepositoryConnector.getTaskPriority(priority);
+ }
}
return null;
}

Back to the top