You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ch...@apache.org on 2006/01/25 04:45:05 UTC

svn commit: r372092 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPTransportReceiver.java

Author: chinthaka
Date: Tue Jan 24 19:44:59 2006
New Revision: 372092

URL: http://svn.apache.org/viewcvs?rev=372092&view=rev
Log:
Preventing (yet another) NPE.

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPTransportReceiver.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPTransportReceiver.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPTransportReceiver.java?rev=372092&r1=372091&r2=372092&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPTransportReceiver.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPTransportReceiver.java Tue Jan 24 19:44:59 2006
@@ -274,7 +274,11 @@
     }
 
     public static Map getGetRequestParameters(String requestURI) {
+
         Map map = new HashMap();
+        if (requestURI == null || "".equals(requestURI)) {
+            return map;
+        }
         char[]       chars = requestURI.toCharArray();
         final int NOT_BEGUN = 1500;
         final int INSIDE_NAME = 1501;
@@ -316,7 +320,7 @@
     /**
      * Returns the HTML text for the list of services deployed.
      * This can be delegated to another Class as well
-     * where it will handle more options of GET messages. 
+     * where it will handle more options of GET messages.
      *
      * @return Returns String.
      */
@@ -335,12 +339,12 @@
             temp += "<h2>" + "Deployed services" + "</h2>";
 
             for (Iterator it = serviceCollection.iterator(); it.hasNext();) {
-                
-            	AxisService axisService = (AxisService) it.next();
+
+                AxisService axisService = (AxisService) it.next();
 
                 Iterator iterator = axisService.getOperations();
-                
-                temp += "<h3><a href=\""+ axisService.getName() + "?wsdl\">"+ axisService.getName() + "</a></h3>";
+
+                temp += "<h3><a href=\"" + axisService.getName() + "?wsdl\">" + axisService.getName() + "</a></h3>";
 
                 if (iterator.hasNext()) {
                     temp += "Available operations <ul>";