UoM support causes crash when using Stroke.NULL -----------------------------------------------
Key: GEOT-3111 URL: http://jira.codehaus.org/browse/GEOT-3111 Project: GeoTools Issue Type: Bug Components: core main Reporter: Michael Bedward Assignee: Andrea Aime Priority: Minor Attachments: UOMProblem.java The attached program creates and displays some polygon features using a style that includes Stroke.NULL. It runs without problem under 2.6.x but crashes under 2.7 due to the new UoM code not liking the stroke. I don't know if this is a bug or intended behaviour that should be documented ? May 27, 2010 4:35:59 PM org.geotools.renderer.lite.StreamingRenderer paint SEVERE: null java.lang.NullPointerException at org.geotools.styling.visitor.UomRescaleStyleVisitor.rescale(UomRescaleStyleVisitor.java:110) at org.geotools.styling.visitor.UomRescaleStyleVisitor.rescaleStroke(UomRescaleStyleVisitor.java:172) at org.geotools.styling.visitor.UomRescaleStyleVisitor.visit(UomRescaleStyleVisitor.java:203) at org.geotools.styling.PolygonSymbolizerImpl.accept(PolygonSymbolizerImpl.java:138) at org.geotools.styling.visitor.DuplicatingStyleVisitor.copy(DuplicatingStyleVisitor.java:534) at org.geotools.styling.visitor.DuplicatingStyleVisitor.visit(DuplicatingStyleVisitor.java:272) at org.geotools.renderer.lite.StreamingRenderer.applyUnitRescale(StreamingRenderer.java:1813) at org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1762) at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:699) at org.geotools.swing.RenderingExecutor$Task.call(RenderingExecutor.java:149) at org.geotools.swing.RenderingExecutor$Task.call(RenderingExecutor.java:105) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:637) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel