You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2015/08/31 07:14:46 UTC

[jira] [Closed] (FELIX-4960) NPE in BundleRevisionImpl.getResourcesLocal()

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

Carsten Ziegeler closed FELIX-4960.
-----------------------------------

> 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.2.0
>
>
> 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)