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.tasks.core/src/org/eclipse/mylyn/tasks/core/data
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.tasks.core/src/org/eclipse/mylyn/tasks/core/data')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskMapper.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskMapper.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskMapper.java
index 3121b763e..2ea0dce26 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskMapper.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskMapper.java
@@ -86,7 +86,8 @@ public class TaskMapper implements ITaskMapping {
}
private String getPriorityLevelString() {
- return (getPriorityLevel() != null) ? getPriorityLevel().toString() : PriorityLevel.getDefault().toString();
+ PriorityLevel priorityLevel = getPriorityLevel();
+ return (priorityLevel != null) ? priorityLevel.toString() : PriorityLevel.getDefault().toString();
}
private boolean hasChanges(Object existingValue, Object newValue, String attributeId) {

Back to the top