felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Bosschaert (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FELIX-4960) NPE in BundleRevisionImpl.getResourcesLocal()
Date Wed, 15 Jul 2015 07:45:05 GMT

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

David Bosschaert resolved FELIX-4960.
-------------------------------------
    Resolution: Fixed

Fixed in http://svn.apache.org/viewvc?view=revision&revision=1691137

> NPE in BundleRevisionImpl.getResourcesLocal()
> ---------------------------------------------
>
>                 Key: FELIX-4960
>                 URL: https://issues.apache.org/jira/browse/FELIX-4960
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-4.4.0, framework-5.0.1
>            Reporter: David Bosschaert
>            Assignee: David Bosschaert
>             Fix For: framework-5.0.2
>
>
> In some situations a NPE can be observed in the BundleRevisionImpl.getResourcesLocal()
method.
> {code}java.lang.NullPointerException: null
>    at org.apache.felix.framework.BundleRevisionImpl.getResourcesLocal(BundleRevisionImpl.java:531)
>    at org.apache.felix.framework.BundleWiringImpl.findResourcesByDelegation(BundleWiringImpl.java:1191)
>    at org.apache.felix.framework.BundleWiringImpl.getResourcesByDelegation(BundleWiringImpl.java:1101)
>    at org.apache.felix.framework.BundleWiringImpl$BundleClassLoaderJava5.getResources(BundleWiringImpl.java:1888){code}
> The offending line of code is: 
> {code}  for (int i = 0; i < contentPath.size(); i++){code}
> So it seems that contentPath is null in some cases.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message