alyssa wright ha scritto:
>   Hi,
> 
> I am using the strToUpperCase function in my SLD.  My SLD is valid and 
> displays appropriately in OpenLayers and the Styler module.  However, if 
> I do a GetLegendGraphic request, I get a NullPointerException.  If I 
> remove the strToUpperCase function from my SLD, I am error free.
> 
> Following are the log files and TextSymbolizer.  Can someone help me 
> decode what's going on?

It's just that the code cannot handle null strings. StaticGeometry (the 
class backing most of the string filter functions) was written by Dave
many years ago and did not receive much usage until today.
As a matter of fact none of the functions there is null safe... fixing
just strToUpper is quick, fixing them all will take some time, but it's
an easy task anybody with some Java programming experience can
handle. Any takers?

http://jira.codehaus.org/browse/GEOS-4105

As an ugly workaround try to put the following in your rule filter
(no guarantees it'll work, haven

<ogc:Not>
   <ogc:PropertyIsNull>
      <ogc:PropertyName>theLabelProperty</ogc:PropertyName>
   </ogc:PropertyIsNull>
</ogc:Not>

Cheers
Andrea

-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to