File is located in version control:
- 
/modules/library/main/src/main/java/org/geotools/filter/function/string/ConcatenateFunction.java

You are correct; the implementation does not check for nulls:

public Object evaluate(Object feature) {
StringBuffer text = new StringBuffer();
for( Expression expression: (List<Expression>) getParameters() ){
try {
String str = (String) expression.evaluate(feature, String.class);
text.append( str );
}
catch( Exception couldNotCompute){
// log me please
}
}
return text.toString();
}

You probably want to open a Jira (or check if one already exists). Do you have 
commit access to fix this yourself?

-- Jody Garnett


On Friday, 27 May 2011 at 6:02 PM, Steve Way wrote:

> Hi everyone,
> 
> I’m having a strange issue where if I use the strConCat function within my 
> SLD, and the value is null in the db field, it is labelling on the map as 
> null.
> 
> Is someone able to point me to the library/package/class where the strConCat 
> is defined so I can have a look at what is going on?
> 
> Many thanks,
> Steve
> 
> 
> DISCLAIMER:
> 
>  This email may contain confidential information and is intended only for the 
> use of the specific individual(s) to which it is addressed. If you are not 
> the intended recipient of this email, you are hereby notified that any 
> unauthorized use, dissemination or copying of this email or the information 
> contained in it or attached to it is strictly prohibited. If you received 
> this message in error, please immediately notify the sender at Infotech or 
> [email protected] 
> (mailto:[email protected]) and delete the original message.
> ------------------------------------------------------------------------------
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery, 
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now. 
> http://p.sf.net/sfu/quest-d2dcopy1
> _______________________________________________
> Geotools-devel mailing list
> [email protected] 
> (mailto:[email protected])
> https://lists.sourceforge.net/lists/listinfo/geotools-devel

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to