felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Tam (JIRA)" <j...@apache.org>
Subject [jira] Created: (FELIX-422) NPE thrown by GetEntryPathsEnumeration constructor
Date Sun, 18 Nov 2007 23:33:42 GMT
NPE thrown by GetEntryPathsEnumeration constructor
--------------------------------------------------

                 Key: FELIX-422
                 URL: https://issues.apache.org/jira/browse/FELIX-422
             Project: Felix
          Issue Type: Bug
          Components: Framework
    Affects Versions: 1.0.0
            Reporter: William Tam


Since the system bundle getInfo().getCurrentModule().getContentLoader().getContent() returns
null, calling system bundle getEntryPaths() will throw NPE in the following snippet of GetEntryPathsEnumeration.java

        m_bundle = bundle;
        m_path = path;
        m_enumeration = m_bundle.getInfo().getCurrentModule()
            .getContentLoader().getContent().getEntries();

java.lang.NullPointerException
        at org.apache.felix.framework.GetEntryPathsEnumeration.<init>(GetEntryPathsEnumeration.java:35)
        at org.apache.felix.framework.Felix.getBundleEntryPaths(Felix.java:1339)
        at org.apache.felix.framework.Felix.getEntryPaths(Felix.java:335)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message