Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2002-06-11 10:23:42 -0400
committerMichael Valenta2002-06-11 10:23:42 -0400
commit7dbe1dc993c946521cd01deb4f57e926a1620282 (patch)
treebe147a00277658625b42b6c09ea8db53fda30b36
parent8b1b135b941f4420cb5fb8a41a883c84552447e0 (diff)
downloadeclipse.platform.team-7dbe1dc993c946521cd01deb4f57e926a1620282.tar.gz
eclipse.platform.team-7dbe1dc993c946521cd01deb4f57e926a1620282.tar.xz
eclipse.platform.team-7dbe1dc993c946521cd01deb4f57e926a1620282.zip
19421: CVS: No log or recovery for uncaught exceptions in decorator thread
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecorationRunnable.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecorationRunnable.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecorationRunnable.java
index 092e7b12c..f459d6739 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecorationRunnable.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecorationRunnable.java
@@ -14,6 +14,8 @@ import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.graphics.ImageData;
@@ -102,7 +104,14 @@ public class CVSDecorationRunnable implements Runnable {
return;
}
- CVSDecoration decoration = decorate(resource);
+ CVSDecoration decoration;
+ try {
+ decoration = decorate(resource);
+ } catch (Exception e) {
+ // If there was a problem, log it and set the decoration to null
+ CVSUIPlugin.log(new Status(IStatus.ERROR, CVSUIPlugin.ID, 0, Policy.bind("simpleInternal"), e));
+ decoration = null;
+ }
// notify that decoration is ready
if(decoration!=null) {

Back to the top