From: Josh Micich Date: Fri, 24 Oct 2008 23:19:26 +0000 (+0000) Subject: should have been submitted with c707778 X-Git-Tag: trunk_20081106~32 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=deecd2936a66aa8505ac75d9d478dafc8ca651bd;p=poi.git should have been submitted with c707778 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@707780 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/testcases/org/apache/poi/poifs/filesystem/TestDocumentInputStream.java b/src/testcases/org/apache/poi/poifs/filesystem/TestDocumentInputStream.java index b42f7ef71a..3f91f4208a 100644 --- a/src/testcases/org/apache/poi/poifs/filesystem/TestDocumentInputStream.java +++ b/src/testcases/org/apache/poi/poifs/filesystem/TestDocumentInputStream.java @@ -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 }