commit | d548d66d26cd186273664d0bf2085b80d9a45f3e | [log] [tgz] |
---|---|---|
author | Karl Pauls <pauls@apache.org> | Fri Nov 18 10:58:25 2011 +0000 |
committer | Karl Pauls <pauls@apache.org> | Fri Nov 18 10:58:25 2011 +0000 |
tree | bc69995ead6884ca1b1e76713796b7319ce8906a | |
parent | 245e76afe438f14e82c394c53a5062bd7d43dfde [diff] |
Adapt to BundleRevisionImpl.class instead of BundleRevision.class for security to fix a nullpointer if the bundle has been uninstalled. (FELIX-3221) git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1203590 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/BundleProtectionDomain.java b/framework/src/main/java/org/apache/felix/framework/BundleProtectionDomain.java index eda9f21..3b1e53b 100644 --- a/framework/src/main/java/org/apache/felix/framework/BundleProtectionDomain.java +++ b/framework/src/main/java/org/apache/felix/framework/BundleProtectionDomain.java
@@ -50,7 +50,7 @@ null); m_felix = new WeakReference(felix); m_bundle = new WeakReference(bundle); - m_revision = new WeakReference(bundle.adapt(BundleRevision.class)); + m_revision = new WeakReference(bundle.adapt(BundleRevisionImpl.class)); m_hashCode = bundle.hashCode(); m_toString = "[" + bundle + "]"; }