camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadrian Zbarcea (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAMEL-3198) DefaultCamelContext throws NPE in getRoute(String id)
Date Wed, 06 Oct 2010 03:57:42 GMT

     [ 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<Route>();
>  } 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message