diff options
author | spingel | 2010-06-04 22:07:32 +0000 |
---|---|---|
committer | spingel | 2010-06-04 22:07:32 +0000 |
commit | c36194c3f0b1c32a84793d845bee91d465bf2464 (patch) | |
tree | 9979521b651205fb2eb06fef086c35c999a075b1 | |
parent | 09df3eadb4b553201858050a82ac3a51d8da8f77 (diff) | |
download | org.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
-rw-r--r-- | org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java | 2 |
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); } } |