src/java.xml/share/classes/com/sun/org/apache/xerces/internal/dom/DOMImplementationImpl.java

Print this page

        

*** 81,90 **** --- 81,93 ---- * * @return true iff this implementation is compatable with the * specified feature and version. */ public boolean hasFeature(String feature, String version) { + if (feature == null || feature.length() == 0) { + return false; + } boolean result = super.hasFeature(feature, version); if (!result) { boolean anyVersion = version == null || version.length() == 0; if (feature.startsWith("+")) {