[
https://issues.apache.org/jira/browse/FOP-2237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Peter Orolin updated FOP-2237:
------------------------------
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
ShowPageImage.run statement pagePanels[pg - firstPage].setPage(pg);)
was:
[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);)
Summary: [PATCH]Zoom in "preview screen" should cause
NullPointerException (was: Zoom in "preview screen" should cause
NullPointerException)
> [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
> 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