[ 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