summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-10-30 22:48:57 (EDT)
committerSteffen Pingel2012-11-01 18:09:17 (EDT)
commita2172e3e5655637bcd859066d01b60c7dbb87543 (patch)
tree0dd29d97077cb6c39195ccf7197ec53a0db9f061
parent3868f0b4d76671cf286e4c24869c59418cbaadd7 (diff)
downloadorg.eclipse.mylyn.tasks-a2172e3e5655637bcd859066d01b60c7dbb87543.zip
org.eclipse.mylyn.tasks-a2172e3e5655637bcd859066d01b60c7dbb87543.tar.gz
org.eclipse.mylyn.tasks-a2172e3e5655637bcd859066d01b60c7dbb87543.tar.bz2
383987: stopping o.e.m.tasks.ui fails if backup manager is not
initialized Change-Id: Id02cd0ce49190613f1b12649d5413dbb474527c6 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=383987
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java
index ba9d3ce..dec13ee 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java
@@ -775,8 +775,12 @@ public class TasksUiPlugin extends AbstractUIPlugin {
}
if (PlatformUI.isWorkbenchRunning()) {
- getPreferenceStore().removePropertyChangeListener(taskListNotificationManager);
- getPreferenceStore().removePropertyChangeListener(taskListBackupManager);
+ if (taskListNotificationManager != null) {
+ getPreferenceStore().removePropertyChangeListener(taskListNotificationManager);
+ }
+ if (taskListBackupManager != null) {
+ getPreferenceStore().removePropertyChangeListener(taskListBackupManager);
+ }
getPreferenceStore().removePropertyChangeListener(PROPERTY_LISTENER);
//taskListManager.getTaskList().removeChangeListener(taskListSaveManager);
CommonColors.dispose();