Hi guys,
After I upgrade felix framework from 3.0.9 to 3.2.0, I met an error like this:
java.lang.NullPointerException
at java.util.ArrayList.<init>(ArrayList.java:131)
at
org.apache.felix.framework.ModuleImpl.attachFragments(ModuleImpl.java:1183)
at
org.apache.felix.framework.BundleImpl.closeModules(BundleImpl.java:138)
at org.apache.felix.framework.BundleImpl.close(BundleImpl.java:101)
at
org.apache.felix.framework.Felix$SystemBundleActivator.stop(Felix.java:4593)
at
org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:651)
at org.apache.felix.framework.Felix.stopBundle(Felix.java:2226)
at org.apache.felix.framework.Felix$3.run(Felix.java:876)
at java.lang.Thread.run(Thread.java:619)
It seems that there is no Null checking when felix close a Module with
fragments. Here is the codes from ModuleImpl.java, line 1183.
List<Wire> hostWires = new ArrayList<Wire>(m_fragments.get(i).getWires());
It would be better to check whether getWires() return null before using it.
Thank you very much
2011-04-02
echo_o