From: Javen O'Neal Date: Sun, 3 Jan 2016 09:48:05 +0000 (+0000) Subject: re-throw errors we aren't looking for X-Git-Tag: REL_3_14_FINAL~102 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5283af50e30f66ab05b3ace9420bf6a2e9c1554e;p=poi.git re-throw errors we aren't looking for git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1722708 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/testcases/org/apache/poi/sl/usermodel/BaseTestSlideShowFactory.java b/src/testcases/org/apache/poi/sl/usermodel/BaseTestSlideShowFactory.java index a6652fd048..bc95aa91b3 100644 --- a/src/testcases/org/apache/poi/sl/usermodel/BaseTestSlideShowFactory.java +++ b/src/testcases/org/apache/poi/sl/usermodel/BaseTestSlideShowFactory.java @@ -125,7 +125,10 @@ public class BaseTestSlideShowFactory { byte[] bytes; try { bytes = _slTests.readFile(filename); - } catch (final Exception e) { + } catch (final RuntimeException e) { + if (!e.getMessage().startsWith("Sample file '" + filename + "' not found in data dir")) { + throw e; + } bytes = readExternalFile(filename); } return bytes;