Ignore uninstalled bundles during start level processing. (FELIX-1753)
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@927284 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/Felix.java b/framework/src/main/java/org/apache/felix/framework/Felix.java
index fdb6478..0b6fee7 100644
--- a/framework/src/main/java/org/apache/felix/framework/Felix.java
+++ b/framework/src/main/java/org/apache/felix/framework/Felix.java
@@ -1133,10 +1133,14 @@
}
catch (IllegalStateException ex)
{
- fireFrameworkEvent(FrameworkEvent.ERROR, impl, ex);
- m_logger.log(
- Logger.LOG_ERROR,
- "Error locking " + impl._getLocation(), ex);
+ // Ignore if the bundle has been uninstalled.
+ if (impl.getState() != Bundle.UNINSTALLED)
+ {
+ fireFrameworkEvent(FrameworkEvent.ERROR, impl, ex);
+ m_logger.log(
+ Logger.LOG_ERROR,
+ "Error locking " + impl._getLocation(), ex);
+ }
continue;
}