karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ulrich Romahn (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (KARAF-1204) NullpointerException in org.apache.karaf.features.command.FeatureFinder
Date Wed, 15 Feb 2012 18:55:00 GMT

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

Ulrich Romahn updated KARAF-1204:
---------------------------------

    Attachment: FeatureFinder.java

Updated source file as suggested in the description. This fix will at least avoid the NPE.
                
> NullpointerException in org.apache.karaf.features.command.FeatureFinder
> -----------------------------------------------------------------------
>
>                 Key: KARAF-1204
>                 URL: https://issues.apache.org/jira/browse/KARAF-1204
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-features
>    Affects Versions: 3.0.0
>         Environment: Build Environment: OpenJDK 1.6.0_22 (64bit), Maven 3.0.4, OpenSuse
12.1-64bit
> Runtime: same as above
>            Reporter: Ulrich Romahn
>         Attachments: FeatureFinder.java
>
>
> The method "updated()" in FeatureFinder throws a NullpointerException during startup.
> This is because ther passed in "Dictionary" is actually null since the configuration
with service.pid="org.apache.karaf.features.repos" (as configured in the Blueprint file "features-command.xml")
does not seem to exist.
> I suggest to at least add a "if (properties != null) {..." into the updated() method
to avoid the NPE.

--
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

        

Mime
View raw message