ICEpdf
  1. ICEpdf
  2. PDF-878

NullPointerException at Page.init thrown when rendering PDF

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.2
    • Fix Version/s: 6.0
    • Component/s: Core/Rendering
    • Labels:
      None
    • Environment:
      All

      Description

      When rendering a provided PDF file, the following NPE is shown in the logs:

      Apr 21, 2015 7:29:01 AM org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer run
      WARNING: Error initiating page: 1
      java.lang.NullPointerException
      at org.icepdf.core.pobjects.Page.init(Page.java:355)
      at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1152)
      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)

      At the moment it doesn't look to be causing any issues.

        Activity

        Arran Mccullough created issue -
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44534 Tue Apr 21 10:25:26 MDT 2015 patrick.corless PDF-878 fixed null pointer if page has no associated resources.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Page.java
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 5.2 [ 10970 ]
        Hide
        Patrick Corless added a comment -

        The second page is blank or incomplete and is missing a few data elements that are expected for a page regardless of content. Added a little code protection and the PDF renders without error.

        Show
        Patrick Corless added a comment - The second page is blank or incomplete and is missing a few data elements that are expected for a page regardless of content. Added a little code protection and the PDF renders without error.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44561 Thu Apr 23 10:09:10 MDT 2015 patrick.corless PDF-878 fixed null pointer if page has no associated resources.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/Page.java
        Hide
        Patrick Corless added a comment -

        Marking as closed

        Show
        Patrick Corless added a comment - Marking as closed
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: