Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.0.3
-
Fix Version/s: 5.0.4
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:All
-
Salesforce Case Reference:
Description
The following error stack trace is thrown when rendering the provided customer PDF (this doesn't seem to be preventing the content from rendering):
WARNING: Error parsing content stream.
java.lang.ArrayIndexOutOfBoundsException: 0
at org.icepdf.core.util.content.a.b(Unknown Source)
at org.icepdf.core.util.content.a.a(Unknown Source)
at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
at org.icepdf.core.pobjects.Page.init(Page.java:368)
at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1039)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
WARNING: Error parsing content stream.
java.lang.ArrayIndexOutOfBoundsException: 0
at org.icepdf.core.util.content.a.b(Unknown Source)
at org.icepdf.core.util.content.a.a(Unknown Source)
at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
at org.icepdf.core.pobjects.Page.init(Page.java:368)
at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1039)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Issue Links
- is duplicated by
-
PDF-823 Pro content parser is failing on empty dictionary definition.
- Closed
The PDF in question contains a content stream that is zero bytes long. The content parser seems to have an issue with the empty content stream and is reporting the index out of bounds error. But as Arran pointed out the error is not causing any rendering issues.