From: Nick Burch Date: Thu, 8 Jan 2015 13:22:50 +0000 (+0000) Subject: Swap Exception for Throwable, to skip a wider range of problems (eg GAE) when attempt... X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ed8964594b96144d989aea0e07e2a81be62ed705;p=poi.git 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 --- diff --git a/src/ooxml/java/org/apache/poi/util/DocumentHelper.java b/src/ooxml/java/org/apache/poi/util/DocumentHelper.java index 0c18b5d009..ac98b44550 100644 --- a/src/ooxml/java/org/apache/poi/util/DocumentHelper.java +++ b/src/ooxml/java/org/apache/poi/util/DocumentHelper.java @@ -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); } } }