You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall (JIRA)" <ji...@apache.org> on 2006/10/03 15:19:23 UTC

[jira] Resolved: (FELIX-157) NullPointerException in isResourceUpdatable

     [ http://issues.apache.org/jira/browse/FELIX-157?page=all ]

Richard S. Hall resolved FELIX-157.
-----------------------------------

    Resolution: Fixed
      Assignee: Richard S. Hall

I applied the patch, thanks.

> 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
>         Assigned To: Richard S. Hall
>         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