[ 
https://issues.apache.org/jira/browse/FOP-2237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13632668#comment-13632668
 ] 

Peter Orolin edited comment on FOP-2237 at 4/16/13 8:54 AM:
------------------------------------------------------------

Attachment patch.diff has been added. Concurrent problem was fixed
                
      was (Author: orol):
    Attachment patch.diff has been added
                  
> [PATCH]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
>              Labels: patch
>         Attachments: patch.diff
>
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> 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

Reply via email to