Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 08E35F8CE for ; Thu, 4 Apr 2013 10:04:32 +0000 (UTC) Received: (qmail 52297 invoked by uid 500); 4 Apr 2013 10:04:31 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 52123 invoked by uid 500); 4 Apr 2013 10:04:30 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 52096 invoked by uid 99); 4 Apr 2013 10:04:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Apr 2013 10:04:29 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of manfred.dohmen@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Apr 2013 10:04:25 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UNh1Y-0005SJ-Ue for users@camel.apache.org; Thu, 04 Apr 2013 03:04:04 -0700 Date: Thu, 4 Apr 2013 03:04:04 -0700 (PDT) From: mdo To: users@camel.apache.org Message-ID: <1365069844942-5730321.post@n5.nabble.com> Subject: 2.11: NPE with replaceFirst() MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello, I have a simple language expression like the one shown below. http4:${header.myUrlString.replaceFirst("http:","")} 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: ${header.myUrlString.replaceFirst("http:","http4:")} 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.