camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: 2.11: NPE with replaceFirst()
Date Thu, 04 Apr 2013 14:23:31 GMT
Hi

Yeah the NPE would be a bug. Feel free to log a JIRA ticket

On Thu, Apr 4, 2013 at 12:04 PM, mdo <manfred.dohmen@gmail.com> wrote:
> Hello,
>
> I have a simple language expression like the one shown below.
>
> <simple>http4:${header.myUrlString.replaceFirst("http:","")}</simple>
>
> It does work with Camel 2.10.x but throws a NPE with 2.11-SNAPSHOT because
> the replacement ("") parameter sent to the String/Matcher classes is null.
>
> I've got it working again by changing my code to:
> <simple>${header.myUrlString.replaceFirst("http:","http4:")}</simple>
>
> Is this a bug in 2.11?
>
> Regards, mdo.
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/2-11-NPE-with-replaceFirst-tp5730321.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message