diff options
author | Dominik Stadler <centic@apache.org> | 2021-01-04 05:51:24 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2021-01-04 05:51:24 +0000 |
commit | b7e9cb48d006ce02e2929551295069d7fa54951b (patch) | |
tree | 846424a5cd3405140f1e24d7ce21c6c8f0bef393 /src/scratchpad/testcases | |
parent | 43e1d6eba6024527ff2dd68afcd5063cd1b07d75 (diff) | |
download | poi-b7e9cb48d006ce02e2929551295069d7fa54951b.tar.gz poi-b7e9cb48d006ce02e2929551295069d7fa54951b.zip |
Bug 64132: Fix regression introduced by changing factories
We need to return EscherBlipRecord for all types in the defined range of recordId,
not UnknownEscherRecord.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885092 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/scratchpad/testcases')
-rw-r--r-- | src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java index 89198d2758..035e7f0bb0 100644 --- a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java +++ b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java @@ -892,4 +892,14 @@ public class TestBugs{ assertNotNull(document); } } + + @Test + public void test64132() throws IOException { + try(HWPFDocument doc = HWPFTestDataSamples.openSampleFile("64132.doc")) { + assertNotNull(doc); + PicturesTable picturesTable = doc.getPicturesTable(); + List<Picture> pictures = picturesTable.getAllPictures(); + assertNotNull(pictures); + } + } } |