]> source.dussan.org Git - poi.git/commitdiff
testcase for bug 34775
authorAvik Sengupta <avik@apache.org>
Thu, 19 May 2005 15:13:04 +0000 (15:13 +0000)
committerAvik Sengupta <avik@apache.org>
Thu, 19 May 2005 15:13:04 +0000 (15:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353692 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/hssf/data/34775.xls [new file with mode: 0644]
src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java

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 (file)
index 0000000..9ad8f23
Binary files /dev/null and b/src/testcases/org/apache/poi/hssf/data/34775.xls differ
index 260d3f321faf3743388fbd261f9206c3e7307536..61336c51379956238b8f0e1eff070dfcc57e9a6c 100644 (file)
@@ -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);
+       }
 
 }