ICEpdf
  1. ICEpdf
  2. PDF-735

NPE if set toolbar visible while loading heavy document

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.5
    • Fix Version/s: 5.0.6_P01, 5.0.7
    • Component/s: API
    • Labels:
      None
    • Environment:
      - Windows 7 64bit
      - JDK/JRE 7 update 51

      Description

      controller.setToolBarVisible()

      When loading a PDF file, if I change the visibility of the toolbar using this method, I will get a NullPointerException.

      java.lang.NullPointerException
      at org.icepdf.core.pobjects.Document.getPageTree(Document.java:1204)
      at org.icepdf.ri.common.SwingController.getPageTree(SwingController.java:3232)
      at org.icepdf.ri.common.SwingController.reflectStateInComponents(SwingController.java:1046)
      at org.icepdf.ri.common.SwingController.setToolBarVisible(SwingController.java:2806)

        Activity

        Hide
        Patrick Corless added a comment -

        I've added some code protection in the Document class as well as the Swing Controller. Should help avoid this issue in the future.

        Show
        Patrick Corless added a comment - I've added some code protection in the Document class as well as the Swing Controller. Should help avoid this issue in the future.
        Hide
        Patrick Corless added a comment -

        Marking as resolved.

        Show
        Patrick Corless added a comment - Marking as resolved.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Nghia Tran
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: