ICEpdf
  1. ICEpdf
  2. PDF-818

NullPointerException - Page.init

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1
    • Fix Version/s: 5.1.1
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      All

      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)

        Activity

        Hide
        Patrick Corless added a comment -

        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.

        Show
        Patrick Corless added a comment - 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.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: