summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-10-30 22:48:57 (EDT)
committerSteffen Pingel2012-11-01 18:04:44 (EDT)
commit9e6532482888741f258cbbc8efbbf300f740f59a (patch)
treef3e5dcde65ffaffba0de9167f804891598f059c6
parent69fc142feb6892ec2ae7c15c3b622c7478d18032 (diff)
downloadorg.eclipse.mylyn.tasks-9e6532482888741f258cbbc8efbbf300f740f59a.zip
org.eclipse.mylyn.tasks-9e6532482888741f258cbbc8efbbf300f740f59a.tar.gz
org.eclipse.mylyn.tasks-9e6532482888741f258cbbc8efbbf300f740f59a.tar.bz2
383987: stopping o.e.m.tasks.ui fails if backup manager is notrefs/changes/41/8441/2
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();