You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/12/15 06:48:01 UTC
[jira] Commented: (CAMEL-3428)
DefaultCamelContext.getEndpoint(String name, Class endpointType) throws
Nullpointer for unknown endpoint
[ https://issues.apache.org/jira/browse/CAMEL-3428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12971557#action_12971557 ]
Claus Ibsen commented on CAMEL-3428:
------------------------------------
I changed it to throw a NoSuchEndpointException which is more appropiate
> DefaultCamelContext.getEndpoint(String name, Class<T> endpointType) throws Nullpointer for unknown endpoint
> -----------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-3428
> URL: https://issues.apache.org/jira/browse/CAMEL-3428
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.5.0
> Reporter: Thomas Jung
> Assignee: Hadrian Zbarcea
> Fix For: 2.6.0
>
> Attachments: camel.patch
>
>
> The method getEndpoint throws an NullPointerException when it's called with an unknown endpoint name:
> java.lang.NullPointerException
> at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:480)
> at org.apache.camel.impl.DefaultCamelContextTest.testGetEndPointByTypeUnknown(DefaultCamelContextTest.java:95)
> The patch is attached.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.