Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.1
-
Fix Version/s: 5.1.1
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:All
-
Support Case References:Support Case #13068 - https://icesoft.my.salesforce.com/5007000000osZh0
Description
With the provided PDF file, the following error is thrown when rendering the last page (7) which is causing the page to not render:
WARNING: Error initiating page: 6
java.lang.NullPointerException
at org.icepdf.core.pobjects.Page.init(Page.java:356)
at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1158)
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:745)
WARNING: Error initiating page: 6
java.lang.NullPointerException
at org.icepdf.core.pobjects.Page.init(Page.java:356)
at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1158)
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:745)
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
A null pointer is occurring when the page's content size is check before sending out a page loading event. The last page of this document contains no content just annotations. A quick check and all is good.