geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r483631 - /geronimo/server/branches/1.2/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandListConfigurations.java
Date Thu, 07 Dec 2006 19:53:44 GMT
Author: dain
Date: Thu Dec  7 11:53:43 2006
New Revision: 483631

URL: http://svn.apache.org/viewvc?view=rev&rev=483631
Log:
GERONIMO-2549 NullPointerException when listing plugins on a bogus server.
Thanks for the patch Mark DeLaFranier

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

Modified: geronimo/server/branches/1.2/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandListConfigurations.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/1.2/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandListConfigurations.java?view=diff&rev=483631&r1=483630&r2=483631
==============================================================================
--- geronimo/server/branches/1.2/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandListConfigurations.java
(original)
+++ geronimo/server/branches/1.2/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandListConfigurations.java
Thu Dec  7 11:53:43 2006
@@ -79,6 +79,11 @@
                 } catch (FailedLoginException e) {
                     throw new DeploymentException("Invalid login for Maven repository '"+repo+"'");
                 }
+                if (data == null) {
+                    out.println();
+                    out.println("No plugins were returned from this site.");
+                    return;
+                }
                 Map categories = new HashMap();
                 List available = new ArrayList();
                 for (int i = 0; i < data.getPlugins().length; i++) {



Mime
View raw message