Skip to content

Commit cf6f32a

Browse files
committed
PDFBOX-5660: remove redundant check, as suggested by Valery Bokov; closes #213
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1927836 13f79535-47bb-0310-9956-ffa450edef68
1 parent f3a4b2c commit cf6f32a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/compress/COSWriterObjectStream.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,6 @@ private void writeObject(OutputStream output, COSBase object, boolean topLevel)
172172
{
173173
return;
174174
}
175-
if (!(object instanceof COSBase))
176-
{
177-
throw new IOException("Error: Unknown type in object stream:" + object);
178-
}
179175
COSBase base;
180176
if (object instanceof COSObject)
181177
{

0 commit comments

Comments
 (0)