Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-06-04 18:07:32 -0400
committerspingel2010-06-04 18:07:32 -0400
commitc36194c3f0b1c32a84793d845bee91d465bf2464 (patch)
tree9979521b651205fb2eb06fef086c35c999a075b1 /org.eclipse.mylyn.tasks.core
parent09df3eadb4b553201858050a82ac3a51d8da8f77 (diff)
downloadorg.eclipse.mylyn.tasks-c36194c3f0b1c32a84793d845bee91d465bf2464.tar.gz
org.eclipse.mylyn.tasks-c36194c3f0b1c32a84793d845bee91d465bf2464.tar.xz
org.eclipse.mylyn.tasks-c36194c3f0b1c32a84793d845bee91d465bf2464.zip
RESOLVED - bug 315791: NullPointerException on TaskRepository.flushCredentials due to String.intern()
https://bugs.eclipse.org/bugs/show_bug.cgi?id=315791
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java
index 7ac970a68..1afeab862 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java
@@ -811,7 +811,7 @@ public final class TaskRepository extends PlatformObject {
Assert.isLegal(!key.matches(".*\\s.*")); //$NON-NLS-1$
String oldValue = this.properties.get(key);
if ((oldValue != null && !oldValue.equals(newValue)) || (oldValue == null && newValue != null)) {
- this.properties.put(key.intern(), newValue.intern());
+ this.properties.put(key.intern(), (newValue != null) ? newValue.intern() : null);
notifyChangeListeners(key, oldValue, newValue);
}
}

Back to the top