[nobug] workaround for failure during BVT
diff --git a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/reconcile/validator/ValidatorStrategy.java b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/reconcile/validator/ValidatorStrategy.java
index 80375b7..08a6525 100644
--- a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/reconcile/validator/ValidatorStrategy.java
+++ b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/reconcile/validator/ValidatorStrategy.java
@@ -309,14 +309,20 @@
super.setDocument(document);
- fValidatorsSuspended = false;
- if (document != null) {
- IFile file = getFile();
- if (file != null) {
- // Validation is suspended for this resource, do nothing
- fValidatorsSuspended = !file.isAccessible() || ValidationFramework.getDefault().isSuspended(file.getProject()) || ValidationFramework.getDefault().getProjectSettings(file.getProject()).getSuspend();
+ try {
+ fValidatorsSuspended = false;
+ if (document != null) {
+ IFile file = getFile();
+ if (file != null) {
+ // Validation is suspended for this resource, do nothing
+ fValidatorsSuspended = !file.isAccessible() || ValidationFramework.getDefault().isSuspended(file.getProject()) || ValidationFramework.getDefault().getProjectSettings(file.getProject()).getSuspend();
+ }
}
}
+ catch (Exception e) {
+ fValidatorsSuspended = true;
+ Logger.logException(e);
+ }
// validator steps are in "fVIdToVStepMap" (as opposed to fFirstStep >
// next step etc...)