Filter NPE regression from GeoTools 2.2
---------------------------------------
Key: GEOT-3234
URL: http://jira.codehaus.org/browse/GEOT-3234
Project: GeoTools
Issue Type: Bug
Components: core filter, core styling
Affects Versions: 2.6.5
Reporter: Jody Garnett
One of the joys of getting uDig 1.2 near completion is people updating code
from GeoTools 2.2 all the way to GeoTools 2.6.
>From email here is a regression in the styling system
{code}
<sld:LineSymbolizer>
<sld:Stroke>
<sld:CssParameter name="stroke">
<ogc:Function name="if_then_else">
<ogc:Function name="lessThan">
<ogc:PropertyName>VOLTAGE_ID</ogc:PropertyName>
<ogc:Literal>3</ogc:Literal>
</ogc:Function>
<ogc:Literal>#FFBB55</ogc:Literal>
<ogc:Function name="if_then_else">
<ogc:Function name="lessThan">
<ogc:PropertyName>VOLTAGE_ID</ogc:PropertyName>
<ogc:Literal>7</ogc:Literal>
</ogc:Function>
<ogc:Literal>#F78484</ogc:Literal>
<ogc:Literal>#5C993C</ogc:Literal>
</ogc:Function>
</ogc:Function>
{code}
Producing:
{panel}
java.lang.IllegalArgumentException: Filter Function problem for function
if_then_else argument #0 - expected type boolean
at
org.geotools.filter.function.FilterFunction_if_then_else.evaluate(FilterFunction_if_then_else.java:45)
at
org.geotools.filter.expression.ExpressionAbstract.evaluate(ExpressionAbstract.java:63)
at org.geotools.styling.SLD.color(SLD.java:1312)
at org.geotools.styling.SLD.color(SLD.java:96)
at org.geotools.styling.SLD.lineColor(SLD.java:84)
at org.geotools.styling.SLD.color(SLD.java:188)
at net.refractions.udig.ui.Drawing.paint(Drawing.java:308)
at net.refractions.udig.ui.Drawing.drawFeature(Drawing.java:246)
at net.refractions.udig.ui.Drawing.drawFeature(Drawing.java:223)
at net.refractions.udig.ui.Drawing.drawDirect(Drawing.java:150)
at net.refractions.udig.ui.graphics.Glyph$6.getImageData(Glyph.java:363)
{panel}
Thanks to Lukasz for the report.
--
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
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel