commit | 425b2d9aec7155a1b0e439718665d4a6a23de59b | [log] [tgz] |
---|---|---|
author | Guillaume Nodet <gnodet@apache.org> | Mon Jun 11 15:14:06 2012 +0000 |
committer | Guillaume Nodet <gnodet@apache.org> | Mon Jun 11 15:14:06 2012 +0000 |
tree | 5128b92b184673c534b44d4781ddc1572d230e01 | |
parent | 0770caddd873a5cacbf2ebd2f832ec105cb85b43 [diff] |
[FELIX-3493] PackageAdminImpl throws NPE - File Install does not handle a bundle uninstall gracefully git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1348898 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/fileinstall/src/main/java/org/apache/felix/fileinstall/internal/DirectoryWatcher.java b/fileinstall/src/main/java/org/apache/felix/fileinstall/internal/DirectoryWatcher.java index 6797f96..8600e0e 100644 --- a/fileinstall/src/main/java/org/apache/felix/fileinstall/internal/DirectoryWatcher.java +++ b/fileinstall/src/main/java/org/apache/felix/fileinstall/internal/DirectoryWatcher.java
@@ -1236,7 +1236,9 @@ // Bundles can only be started transient when the start level of the framework is high // enough. Persistent (i.e. non-transient) starts will simply make the framework start the // bundle when the start level is high enough. - if (!isFragment(bundle) && startBundles + if (startBundles + && bundle.getState() != Bundle.UNINSTALLED + && !isFragment(bundle) && startLevelSvc.getStartLevel() >= startLevelSvc.getBundleStartLevel(bundle)) { try