geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r573794 - /geronimo/server/trunk/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandListConfigurations.java
Date Sat, 08 Sep 2007 07:38:28 GMT
Author: djencks
Date: Sat Sep  8 00:38:27 2007
New Revision: 573794

URL: http://svn.apache.org/viewvc?rev=573794&view=rev
Log:
avoid an NPE

Modified:
    geronimo/server/trunk/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandListConfigurations.java

Modified: geronimo/server/trunk/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandListConfigurations.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandListConfigurations.java?rev=573794&r1=573793&r2=573794&view=diff
==============================================================================
--- geronimo/server/trunk/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandListConfigurations.java
(original)
+++ geronimo/server/trunk/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandListConfigurations.java
Sat Sep  8 00:38:27 2007
@@ -87,6 +87,9 @@
                 List<PluginType> available = new ArrayList<PluginType>();
                 for (Map.Entry<String, List<PluginType>> entry : categories.entrySet())
{
                     String category = entry.getKey();
+                    if (category == null) {
+                        category = "<no category>";
+                    }
                     List<PluginType> items = entry.getValue();
                     out.println();
                     out.print(DeployUtils.reformat(category, 4, 72));



Mime
View raw message