Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 64771 invoked from network); 6 Oct 2010 03:58:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Oct 2010 03:58:05 -0000 Received: (qmail 53649 invoked by uid 500); 6 Oct 2010 03:58:05 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 53611 invoked by uid 500); 6 Oct 2010 03:58:05 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 53603 invoked by uid 500); 6 Oct 2010 03:58:05 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 53600 invoked by uid 99); 6 Oct 2010 03:58:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Oct 2010 03:58:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Oct 2010 03:58:03 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o963vgnN013451 for ; Wed, 6 Oct 2010 03:57:42 GMT Message-ID: <26170487.46791286337462033.JavaMail.jira@thor> Date: Tue, 5 Oct 2010 23:57:42 -0400 (EDT) From: "Hadrian Zbarcea (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Updated: (CAMEL-3198) DefaultCamelContext throws NPE in getRoute(String id) In-Reply-To: <8979454.45741286292580365.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-3198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hadrian Zbarcea updated CAMEL-3198: ----------------------------------- Fix Version/s: 2.5.0 > DefaultCamelContext throws NPE in getRoute(String id) > ------------------------------------------------------ > > Key: CAMEL-3198 > URL: https://issues.apache.org/activemq/browse/CAMEL-3198 > Project: Apache Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.4.0 > Reporter: Stefan Below > Assignee: Hadrian Zbarcea > Priority: Minor > Fix For: 2.5.0 > > > DefaultCamelContext throws NPE in getRoute(String id) if no routes are deployed. > This happens because the "route LinkedHashSet" is not initialized. > Fix: > don't do Lazy init of route or add this to getRoute(String id): > if (routes == null) { > routes = new LinkedHashSet(); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.