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@1203593 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework.security/src/main/java/org/apache/felix/framework/SecurityProviderImpl.java b/framework.security/src/main/java/org/apache/felix/framework/SecurityProviderImpl.java
index 2a06343..e07a925 100644
--- a/framework.security/src/main/java/org/apache/felix/framework/SecurityProviderImpl.java
+++ b/framework.security/src/main/java/org/apache/felix/framework/SecurityProviderImpl.java
@@ -59,7 +59,7 @@
      */
     public void checkBundle(Bundle bundle) throws Exception
     {
-        BundleRevisionImpl module = (BundleRevisionImpl) bundle.adapt(BundleRevision.class);
+        BundleRevisionImpl module = (BundleRevisionImpl) bundle.adapt(BundleRevisionImpl.class);
         m_parser.checkDNChains(module, module.getContent(),
             Bundle.SIGNERS_TRUSTED);
     }
@@ -69,7 +69,7 @@
      */
     public Object getSignerMatcher(final Bundle bundle, int signersType)
     {
-        BundleRevisionImpl module = (BundleRevisionImpl) bundle.adapt(BundleRevision.class);
+        BundleRevisionImpl module = (BundleRevisionImpl) bundle.adapt(BundleRevisionImpl.class);
         return m_parser.getDNChains(module, module.getContent(), signersType);
     }