diff --git a/src/testcases/org/apache/poi/hssf/data/28774.xls b/src/testcases/org/apache/poi/hssf/data/28774.xls new file mode 100755 index 000000000..476f3bafe Binary files /dev/null and b/src/testcases/org/apache/poi/hssf/data/28774.xls differ diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java index 635ce640c..7e9aeff5f 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java @@ -877,4 +877,15 @@ public final class TestBugs extends TestCase { } assertEquals(713, rowsSeen); } + + /** + * Bug 28774: Excel will crash when opening xls-files with images. + */ + public void test28774() { + + HSSFWorkbook wb = openSample("28774.xls"); + assertTrue("no errors reading sample xls", true); + writeOutAndReadBack(wb); + assertTrue("no errors writing sample xls", true); + } }