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.

Reply via email to