You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Peter Orolin (JIRA)" <ji...@apache.org> on 2013/04/16 10:49:16 UTC

[jira] [Created] (FOP-2237) Zoom in "preview screen" should cause NullPointerException

Peter Orolin created FOP-2237:
---------------------------------

             Summary: Zoom in "preview screen" should cause NullPointerException
                 Key: FOP-2237
                 URL: https://issues.apache.org/jira/browse/FOP-2237
             Project: Fop
          Issue Type: Bug
          Components: awt renderer
    Affects Versions: trunk
         Environment: Operating System: Windows
Platform: PC
            Reporter: Peter Orolin


[PATCH]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 ShowPageImage.run statement pagePanels[pg - firstPage].setPage(pg);)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira