geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ammul...@apache.org
Subject svn commit: r355908 - /geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/util/PortletManager.java
Date Sun, 11 Dec 2005 04:57:11 GMT
Author: ammulder
Date: Sat Dec 10 20:57:06 2005
New Revision: 355908

URL: http://svn.apache.org/viewcvs?rev=355908&view=rev
Log:
Better handling for non-editable ConfigurationManager

Modified:
    geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/util/PortletManager.java

Modified: geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/util/PortletManager.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/util/PortletManager.java?rev=355908&r1=355907&r2=355908&view=diff
==============================================================================
--- geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/util/PortletManager.java
(original)
+++ geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/util/PortletManager.java
Sat Dec 10 20:57:06 2005
@@ -265,7 +265,7 @@
         ManagementHelper helper = getManagementHelper(request);
         WebManager manager = (WebManager) helper.getObject(managerObjectName);
         String objectName = manager.addConnector(containerObjectName, name, protocol, host,
port);
-        return (WebConnector)helper.getObject(objectName);
+        return objectName == null ? null : (WebConnector)helper.getObject(objectName);
     }
 
     public static WebConnector[] getWebConnectors(PortletRequest request, String managerObjectName)
{



Mime
View raw message