Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2237

[PATCH]Clicking zoom-in or zoom-out buttons in preview screen should cause NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.5
    • None
    • renderer/awt
    • Operating System: Windows
      Platform: PC

    Description

      Zoom in "preview screen" should cause NullPointerException, because of incorrect use of synchronized in class org.apache.fop.render.awt.viewer.PreviewPanel.

      Method PreviewPanel.reload() is synchronized, but it creates new Thread, which is not under synchronized control. Sometimes, when it is later run method PreviewPanel.showPage(), it finishes with NullPointerException (array pagePanels is initialized, but objects in the array not – see PreviewPanel.ShowPageImage.run statement pagePanels[pg - firstPage].setPage(pg)

      Attachments

        1. patch.diff
          6 kB
          Peter Orolin

        Activity

          People

            Unassigned Unassigned
            orol Peter Orolin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 3h
                3h
                Remaining:
                Remaining Estimate - 3h
                3h
                Logged:
                Time Spent - Not Specified
                Not Specified