aboutsummaryrefslogtreecommitdiffstats
path: root/poi
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2023-02-14 18:20:06 +0000
committerPJ Fanning <fanningpj@apache.org>2023-02-14 18:20:06 +0000
commitc67d140d77fa25c04f9f22028da5e41b1aa268c9 (patch)
treee73cb61c19f144c8da87086b2c64a83900d57b39 /poi
parente431ec35c315118d90f84c1f85c475663480db7b (diff)
downloadpoi-c67d140d77fa25c04f9f22028da5e41b1aa268c9.tar.gz
poi-c67d140d77fa25c04f9f22028da5e41b1aa268c9.zip
safety check on throwable catch
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907660 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi')
-rw-r--r--poi/src/main/java/org/apache/poi/util/XMLHelper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/poi/src/main/java/org/apache/poi/util/XMLHelper.java b/poi/src/main/java/org/apache/poi/util/XMLHelper.java
index 02eecb331b..eaa27edffb 100644
--- a/poi/src/main/java/org/apache/poi/util/XMLHelper.java
+++ b/poi/src/main/java/org/apache/poi/util/XMLHelper.java
@@ -318,7 +318,7 @@ public final class XMLHelper {
try {
property.accept(name, value);
return true;
- } catch (Exception|Error e) {
+ } catch (Throwable e) {
if (ExceptionUtil.isFatal(e)) {
ExceptionUtil.rethrow(e);
}