geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From v...@apache.org
Subject svn commit: r656911 - /geronimo/server/branches/2.1/plugins/monitoring/mconsole-war/src/main/java/org/apache/geronimo/monitoring/console/MonitoringPortlet.java
Date Fri, 16 May 2008 01:02:40 GMT
Author: viet
Date: Thu May 15 18:02:40 2008
New Revision: 656911

URL: http://svn.apache.org/viewvc?rev=656911&view=rev
Log:
Fix for Geronimo-3996. Ensure that there are no null rendered params.

Modified:
    geronimo/server/branches/2.1/plugins/monitoring/mconsole-war/src/main/java/org/apache/geronimo/monitoring/console/MonitoringPortlet.java

Modified: geronimo/server/branches/2.1/plugins/monitoring/mconsole-war/src/main/java/org/apache/geronimo/monitoring/console/MonitoringPortlet.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/plugins/monitoring/mconsole-war/src/main/java/org/apache/geronimo/monitoring/console/MonitoringPortlet.java?rev=656911&r1=656910&r2=656911&view=diff
==============================================================================
--- geronimo/server/branches/2.1/plugins/monitoring/mconsole-war/src/main/java/org/apache/geronimo/monitoring/console/MonitoringPortlet.java
(original)
+++ geronimo/server/branches/2.1/plugins/monitoring/mconsole-war/src/main/java/org/apache/geronimo/monitoring/console/MonitoringPortlet.java
Thu May 15 18:02:40 2008
@@ -224,6 +224,12 @@
             String retention = actionRequest.getParameter("retention");
             Integer port = Integer.parseInt(actionRequest.getParameter("port"));
             Integer protocol = Integer.parseInt(actionRequest.getParameter("protocol"));
+            if(snapshot == null) {
+                snapshot = "";
+            }
+            if(retention == null) {
+                retention = "";
+            }
             String message = testConnection(name, ip, username, password, port, protocol);
             actionResponse.setRenderParameter("message", message);
             actionResponse.setRenderParameter("name", name);



Mime
View raw message