You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by pa...@apache.org on 2011/11/18 11:58:25 UTC
svn commit: r1203590 -
/felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleProtectionDomain.java
Author: pauls
Date: Fri Nov 18 10:58:25 2011
New Revision: 1203590
URL: http://svn.apache.org/viewvc?rev=1203590&view=rev
Log:
Adapt to BundleRevisionImpl.class instead of BundleRevision.class for security to fix a nullpointer if the bundle has been uninstalled. (FELIX-3221)
Modified:
felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleProtectionDomain.java
Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleProtectionDomain.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleProtectionDomain.java?rev=1203590&r1=1203589&r2=1203590&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleProtectionDomain.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleProtectionDomain.java Fri Nov 18 10:58:25 2011
@@ -50,7 +50,7 @@ public class BundleProtectionDomain exte
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 + "]";
}