summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2013-05-06 18:33:36 (EDT)
committer Gerrit Code Review @ Eclipse.org2013-05-07 03:25:03 (EDT)
commit1fa9a69e17888572af3135bae8fcbe3336864487 (patch)
tree2679f1e646426c17c2e9f8371345bbe02e54ff47
parentaed8506a9120bc68c280c0039406a90c8b5c957e (diff)
downloadorg.eclipse.mylyn.tasks-1fa9a69e17888572af3135bae8fcbe3336864487.zip
org.eclipse.mylyn.tasks-1fa9a69e17888572af3135bae8fcbe3336864487.tar.gz
org.eclipse.mylyn.tasks-1fa9a69e17888572af3135bae8fcbe3336864487.tar.bz2
389612: IllegalStateException for TaskListBackupManager on Eclipserefs/changes/59/12559/2
shutdown Change-Id: I811e581612f17c81673e39130919fb72f836d91c Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=389612
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListBackupManager.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListBackupManager.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListBackupManager.java
index df83d1e..dc20f1b 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListBackupManager.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListBackupManager.java
@@ -80,7 +80,6 @@ public class TaskListBackupManager implements IPropertyChangeListener {
}
runBackup = new Job("Task Data Snapshot") { //$NON-NLS-1$
-
@Override
protected IStatus run(IProgressMonitor monitor) {
try {
@@ -89,7 +88,9 @@ public class TaskListBackupManager implements IPropertyChangeListener {
}
return Status.OK_STATUS;
} finally {
- schedule(STANDARD_DELAY);
+ if (PlatformUI.isWorkbenchRunning()) {
+ schedule(STANDARD_DELAY);
+ }
}
}
};