Browse Source

Swap Exception for Throwable, to skip a wider range of problems (eg GAE) when attempting to set an xml security manager as best we can

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1650290 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_3_12_BETA1
Nick Burch 9 years ago
parent
commit
ef2ca85280
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/ooxml/java/org/apache/poi/util/DocumentHelper.java

+ 2
- 2
src/ooxml/java/org/apache/poi/util/DocumentHelper.java View File

@@ -80,8 +80,8 @@ public final class DocumentHelper {
documentBuilderFactory.setAttribute("http://apache.org/xml/properties/security-manager", mgr);
// Stop once one can be setup without error
return;
} catch (Exception e) {
logger.log(POILogger.WARN, "SAX Security Manager could not be setup", e);
} catch (Throwable t) {
logger.log(POILogger.WARN, "SAX Security Manager could not be setup", t);
}
}
}

Loading…
Cancel
Save