geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ammul...@apache.org
Subject svn commit: r397630 - /geronimo/branches/1.1/applications/console-core/src/java/org/apache/geronimo/console/util/KernelManagementHelper.java
Date Thu, 27 Apr 2006 20:58:10 GMT
Author: ammulder
Date: Thu Apr 27 13:58:06 2006
New Revision: 397630

URL: http://svn.apache.org/viewcvs?rev=397630&view=rev
Log:
A little more defensive

Modified:
    geronimo/branches/1.1/applications/console-core/src/java/org/apache/geronimo/console/util/KernelManagementHelper.java

Modified: geronimo/branches/1.1/applications/console-core/src/java/org/apache/geronimo/console/util/KernelManagementHelper.java
URL: http://svn.apache.org/viewcvs/geronimo/branches/1.1/applications/console-core/src/java/org/apache/geronimo/console/util/KernelManagementHelper.java?rev=397630&r1=397629&r2=397630&view=diff
==============================================================================
--- geronimo/branches/1.1/applications/console-core/src/java/org/apache/geronimo/console/util/KernelManagementHelper.java
(original)
+++ geronimo/branches/1.1/applications/console-core/src/java/org/apache/geronimo/console/util/KernelManagementHelper.java
Thu Apr 27 13:58:06 2006
@@ -444,7 +444,8 @@
                     ConfigurationInfo info = (ConfigurationInfo) j.next();
                     AbstractName configuration = Configuration.getConfigurationAbstractName(info.getConfigID());
                     if (type == null || type.getValue() == info.getType().getValue()) {
-                        results.add(new ConfigurationData(info.getConfigID(), configuration,
null, info.getState(), info.getType(), kernel.getAbstractNameFor(getModuleForConfiguration(info.getConfigID()))));
+                        J2EEDeployedObject module = getModuleForConfiguration(info.getConfigID());
+                        results.add(new ConfigurationData(info.getConfigID(), configuration,
null, info.getState(), info.getType(), module == null ? null : kernel.getAbstractNameFor(module)));
                     }
                     if (includeChildModules && info.getType().getValue() == ConfigurationModuleType.EAR.getValue()
&& info.getState().toInt() == State.RUNNING_INDEX)
                     {



Mime
View raw message