Author: thomas.diesler(a)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)
{