geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwo...@apache.org
Subject svn commit: r1144168 - /geronimo/server/trunk/plugins/console/console-base-portlets/src/main/java/org/apache/geronimo/console/bundlemanager/BundleManagerPortlet.java
Date Fri, 08 Jul 2011 06:25:30 GMT
Author: rwonly
Date: Fri Jul  8 06:25:29 2011
New Revision: 1144168

URL: http://svn.apache.org/viewvc?rev=1144168&view=rev
Log:
GERONIMO-6054 Bundle null error happened when refresh an inactive bundle

Modified:
    geronimo/server/trunk/plugins/console/console-base-portlets/src/main/java/org/apache/geronimo/console/bundlemanager/BundleManagerPortlet.java

Modified: geronimo/server/trunk/plugins/console/console-base-portlets/src/main/java/org/apache/geronimo/console/bundlemanager/BundleManagerPortlet.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/console/console-base-portlets/src/main/java/org/apache/geronimo/console/bundlemanager/BundleManagerPortlet.java?rev=1144168&r1=1144167&r2=1144168&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/console/console-base-portlets/src/main/java/org/apache/geronimo/console/bundlemanager/BundleManagerPortlet.java
(original)
+++ geronimo/server/trunk/plugins/console/console-base-portlets/src/main/java/org/apache/geronimo/console/bundlemanager/BundleManagerPortlet.java
Fri Jul  8 06:25:29 2011
@@ -217,7 +217,7 @@ public class BundleManagerPortlet extend
                         addInfoMessage(actionRequest, getLocalizedString(actionRequest, "consolebase.bundlemanager.info.update",
symbolicName, id));
                     } else if (REFRESH_OPERATION.equals(operation)) {
                         ServiceReference reference = bundleContext.getServiceReference(PackageAdmin.class.getName());
-                        PackageAdmin packageAdmin = (PackageAdmin) bundle.getBundleContext().getService(reference);
+                        PackageAdmin packageAdmin = (PackageAdmin) bundleContext.getService(reference);
                         packageAdmin.refreshPackages(new Bundle[]{bundle});
                         addInfoMessage(actionRequest, getLocalizedString(actionRequest, "consolebase.bundlemanager.info.refresh",
symbolicName, id));
                     } else {



Mime
View raw message