You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Babak Vahdat (Commented) (JIRA)" <ji...@apache.org> on 2012/02/29 01:28:54 UTC
[jira] [Commented] (CAMEL-5051) NullPointerException when assigning
a simple Object as final bean
[ https://issues.apache.org/jira/browse/CAMEL-5051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13218754#comment-13218754 ]
Babak Vahdat commented on CAMEL-5051:
-------------------------------------
Thanks for reporting, I did however change the patch your provided a bit as the intention is *not* to skip the java.lang.Object.toString() methid. See the static block initializing EXCLUDED_METHODS.
Also added a tiny unit-test to verify the behaviour.
> NullPointerException when assigning a simple Object as final bean
> -----------------------------------------------------------------
>
> Key: CAMEL-5051
> URL: https://issues.apache.org/jira/browse/CAMEL-5051
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.9.0
> Environment: JSE6, Windows7
> Reporter: Fabrice Daugan
> Assignee: Babak Vahdat
> Priority: Trivial
> Fix For: 2.8.5, 2.9.1, 2.10.0
>
> Attachments: CAMEL-5051.patch, MyRouteBuilder.java, stacktrace.txt
>
>
> Considering this route :
> from("direct://myendpoint").routeId("myendpoint.route").bean(new Object());
> I get a NPE. I know, this is a very rare case that noone will reach again...
> Anyway the fix is very simple, and is attached with it's test case.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira