[Framework] NPE from a host bundle during framework shutdown
------------------------------------------------------------
Key: FELIX-2901
URL: https://issues.apache.org/jira/browse/FELIX-2901
Project: Felix
Issue Type: Bug
Components: Framework
Affects Versions: framework-3.2.0
Reporter: Richard S. Hall
Assignee: Richard S. Hall
Priority: Minor
Fix For: framework-4.0.0
When shutting down the framework, if a fragment is released before its host
bundle, an NPE results because the host is trying to remove itself from the
fragment's wires, but the fragment no longer has any wires. This is likely an
issue any time when a fragment is refreshed before the host. I think we just
need a null check here. In 3.0.x this wasn't an issue because we didn't use
wires in the fragment to keep track of host dependencies.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira