From deecd2936a66aa8505ac75d9d478dafc8ca651bd Mon Sep 17 00:00:00 2001 From: Josh Micich Date: Fri, 24 Oct 2008 23:19:26 +0000 Subject: [PATCH] should have been submitted with c707778 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@707780 13f79535-47bb-0310-9956-ffa450edef68 --- .../poi/poifs/filesystem/TestDocumentInputStream.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 } -- 2.39.5