[jboss-cvs] JBossAS SVN: r97179 - projects/jboss-osgi/projects/bundles/husky/trunk/src/main/java/org/jboss/osgi/testing/internal.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Nov 30 11:39:07 EST 2009


Author: thomas.diesler at jboss.com
Date: 2009-11-30 11:39:07 -0500 (Mon, 30 Nov 2009)
New Revision: 97179

Modified:
   projects/jboss-osgi/projects/bundles/husky/trunk/src/main/java/org/jboss/osgi/testing/internal/EmbeddedBundle.java
Log:
Fix NPE in OSGiBundle.uninstall() when context not available

Modified: projects/jboss-osgi/projects/bundles/husky/trunk/src/main/java/org/jboss/osgi/testing/internal/EmbeddedBundle.java
===================================================================
--- projects/jboss-osgi/projects/bundles/husky/trunk/src/main/java/org/jboss/osgi/testing/internal/EmbeddedBundle.java	2009-11-30 16:33:57 UTC (rev 97178)
+++ projects/jboss-osgi/projects/bundles/husky/trunk/src/main/java/org/jboss/osgi/testing/internal/EmbeddedBundle.java	2009-11-30 16:39:07 UTC (rev 97179)
@@ -122,7 +122,7 @@
       assertNotUninstalled();
       try
       {
-         BundleContext context = bundle.getBundleContext();
+         BundleContext context = ((EmbeddedRuntime)getRuntime()).getBundleContext();
          ServiceReference sref = context.getServiceReference(DeployerService.class.getName());
          if (sref != null)
          {




More information about the jboss-cvs-commits mailing list