Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0 - Beta
    • Fix Version/s: 4.0
    • Component/s: Viewer RI
    • Labels:
      None
    • Environment:
      RI Viewer
    • Workaround Description:
      Edit Swing controller and comment out PrintHelper null pointer check in ShowPrintSetupDailog and initializePrinting dialogs.

      Description

      The Swing controller will though a null pointer when opening a second document for printing.

      1. Open a document, print it
      2. Close the first document
      3. Open a second document, print it.
      4. a null pointer will result.

        Activity

        Patrick Corless created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Workaround Description Edit Swing controller and comment out PrintHelper null pointer check in ShowPrintSetupDailog and initializePrinting dialogs.
        Salesforce Case []
        Fix Version/s 4.0 [ 10222 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #20197 Tue Jan 12 11:45:04 MST 2010 patrick.corless PDF-111 updated controller to create a new instance of PrintHelper for each open document.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/SwingController.java
        Hide
        Patrick Corless added a comment -

        The SwingController was lazy loading the PrintHelper object and thus only setting up the reference to the pageTree of the first document loaded and not for any subsequent documents. I've updated the SwingController to make sure it creates a new instance of the printHelper when a new document is loaded.

        Show
        Patrick Corless added a comment - The SwingController was lazy loading the PrintHelper object and thus only setting up the reference to the pageTree of the first document loaded and not for any subsequent documents. I've updated the SwingController to make sure it creates a new instance of the printHelper when a new document is loaded.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: