You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2012/10/05 09:20:47 UTC

[jira] [Resolved] (CAMEL-5682) possible NullPointerException in org.apache.camel.util.ObjectHelper.getCamelPropertiesWithPrefix(prefix, camelContext)

     [ https://issues.apache.org/jira/browse/CAMEL-5682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-5682.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.10.2
                   2.11.0
                   2.9.4
         Assignee: Claus Ibsen

Thanks for reporting.

Unlikely to happen as an end user would not store a property with a null key. That does not make sense.

But added a null check in the source code.
                
> possible NullPointerException in org.apache.camel.util.ObjectHelper.getCamelPropertiesWithPrefix(prefix, camelContext)
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5682
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5682
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.10.0
>         Environment: Linux, Spring 3.1.1, Karaf 2.2.4
>            Reporter: Michael Sokalski
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.9.4, 2.11.0, 2.10.2
>
>
> If the camel context's properties contain an entry set with a null key, and ObjectHelper.getCamelPropertiesWithPrefix(prefix, camelContext) is called, a NullPointerException will be thrown at line 659.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira