aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}
}