]> source.dussan.org Git - poi.git/commitdiff
should have been submitted with c707778
authorJosh Micich <josh@apache.org>
Fri, 24 Oct 2008 23:19:26 +0000 (23:19 +0000)
committerJosh Micich <josh@apache.org>
Fri, 24 Oct 2008 23:19:26 +0000 (23:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@707780 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/poifs/filesystem/TestDocumentInputStream.java

index b42f7ef71a09ee3214cd0f2e3edc7ac6ab61ecc7..3f91f4208ae1825383b7c7a17e81cd5c5a92ad36 100644 (file)
@@ -284,14 +284,10 @@ public class TestDocumentInputStream
     {
         DocumentInputStream stream = new DocumentInputStream(_workbook);
 
-        try
-        {
+        try {
             stream.read(null, 0, 1);
             fail("Should have caught NullPointerException");
-        }
-        catch (NullPointerException ignored)
-        {
-
+        } catch (IllegalArgumentException ignored) {
             // as expected
         }