You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2006/10/03 11:41:20 UTC
[jira] Updated: (FELIX-157) NullPointerException in
isResourceUpdatable
[ http://issues.apache.org/jira/browse/FELIX-157?page=all ]
Felix Meschberger updated FELIX-157:
------------------------------------
Attachment: bundlerepository_fm_20061003.diff
Very simple patch implementing the check.
> NullPointerException in isResourceUpdatable
> -------------------------------------------
>
> Key: FELIX-157
> URL: http://issues.apache.org/jira/browse/FELIX-157
> Project: Felix
> Issue Type: Bug
> Components: Bundle Repository (OBR)
> Environment: Felix SVN Rev. 452367
> Reporter: Felix Meschberger
> Attachments: bundlerepository_fm_20061003.diff
>
>
> The isResourceUpdatable() method may throw a NullPointerException in case the bundle to be check whether it is updatable has no capabilities, that is neiterh exported services nor exported packages. In this case the getResolvableRequirements() method returns null, which is not caught by the isResourceUpdatable() method.
> I suppose that the resource is perfectly updatable in this situation and a check may simply be built in, which just returns true in case the resource has no capabilities at all.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira