RenderingExecutor regression: NPE when task is cancelled
--------------------------------------------------------

                 Key: GEOT-3802
                 URL: https://jira.codehaus.org/browse/GEOT-3802
             Project: GeoTools
          Issue Type: Bug
          Components: swing
            Reporter: Michael Bedward
            Assignee: Michael Bedward
             Fix For: 8.0-M2


Until recently, the RenderingTask class included a cancel method which stopped 
the renderer gracefully. I thought this was redundant and changed 
DefaultRenderingExecutor to call cancel on the Future for the task. However, 
this can result in the renderer losing its data and throwing an NPE.

One fix would be to add a reference to the renderer to the nested TaskInfo 
class and call renderer.stopRendering rather than cancelling the future. 
Another option is to reinstate the cancel method in the RenderingTask class. Of 
the two, the second seems preferable because it worked before and could be used 
by other RenderingExecutor implementations.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to