[112755] We should never catch general Exception and not at least log it
diff --git a/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/validation/DelegatingSourceValidatorForXML.java b/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/validation/DelegatingSourceValidatorForXML.java
index 17c619e..985e3dd 100644
--- a/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/validation/DelegatingSourceValidatorForXML.java
+++ b/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/validation/DelegatingSourceValidatorForXML.java
@@ -13,6 +13,7 @@
import org.eclipse.wst.validation.internal.provisional.ValidationFactory;
import org.eclipse.wst.validation.internal.provisional.core.IValidator;
+import org.eclipse.wst.xml.ui.internal.Logger;
/**
* @author Mark Hutchinson
@@ -26,11 +27,13 @@
}
protected IValidator getDelegateValidator() {
+ IValidator result = null;
try {
- return ValidationFactory.instance.getValidator(VALIDATOR_CLASS);
+ result = ValidationFactory.instance.getValidator(VALIDATOR_CLASS);
}
- catch (Exception e) { //
+ catch (InstantiationException e) {
+ Logger.logException(e);
}
- return null;
+ return result;
}
}