aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/poifs
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2016-02-21 20:41:56 +0000
committerDominik Stadler <centic@apache.org>2016-02-21 20:41:56 +0000
commite89cb5544da9c01f9945eb9fdf456cfee342ead3 (patch)
tree41cd9d4e38b4345f9e9d5cec59f908c56a826fbd /src/java/org/apache/poi/poifs
parent12ac00eafd677f6e6be10a143a8f2b6ef96a3d2e (diff)
downloadpoi-e89cb5544da9c01f9945eb9fdf456cfee342ead3.tar.gz
poi-e89cb5544da9c01f9945eb9fdf456cfee342ead3.zip
Include stacktrace of inner exception when block-positions are invalid in POIFSFileSystem
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1731560 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/poifs')
-rw-r--r--src/java/org/apache/poi/poifs/filesystem/NPOIFSFileSystem.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/poifs/filesystem/NPOIFSFileSystem.java b/src/java/org/apache/poi/poifs/filesystem/NPOIFSFileSystem.java
index 71d39546d0..cb88f2d556 100644
--- a/src/java/org/apache/poi/poifs/filesystem/NPOIFSFileSystem.java
+++ b/src/java/org/apache/poi/poifs/filesystem/NPOIFSFileSystem.java
@@ -483,7 +483,9 @@ public class NPOIFSFileSystem extends BlockStore
try {
return _data.read(bigBlockSize.getBigBlockSize(), startAt);
} catch (IndexOutOfBoundsException e) {
- throw new IndexOutOfBoundsException("Block " + offset + " not found - " + e);
+ IndexOutOfBoundsException wrapped = new IndexOutOfBoundsException("Block " + offset + " not found");
+ wrapped.initCause(e);
+ throw wrapped;
}
}