From: Avik Sengupta Date: Thu, 19 May 2005 15:13:04 +0000 (+0000) Subject: testcase for bug 34775 X-Git-Tag: BEFORE_RICHTEXT~77 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7ba496912f5e55b35dac31bbc3217c29d1c810a2;p=poi.git testcase for bug 34775 git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353692 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/testcases/org/apache/poi/hssf/data/34775.xls b/src/testcases/org/apache/poi/hssf/data/34775.xls new file mode 100644 index 0000000000..9ad8f23836 Binary files /dev/null and b/src/testcases/org/apache/poi/hssf/data/34775.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 260d3f321f..61336c5137 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java @@ -515,6 +515,15 @@ extends TestCase { HSSFWorkbook wb = new HSSFWorkbook(in); assertTrue("Read book fine!" , true); } + + /*NullPointerException on reading file*/ + public void test34775() throws java.io.IOException { + String filename = System.getProperty("HSSF.testdata.path"); + filename=filename+"/34775.xls"; + FileInputStream in = new FileInputStream(filename); + HSSFWorkbook wb = new HSSFWorkbook(in); + assertTrue("Read book fine!" , true); + } }