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 am...@apache.org on 2008/01/23 09:37:43 UTC

svn commit: r614452 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java

Author: amilas
Date: Wed Jan 23 00:37:33 2008
New Revision: 614452

URL: http://svn.apache.org/viewvc?rev=614452&view=rev
Log:
added a null check for prefix.

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java?rev=614452&r1=614451&r2=614452&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java Wed Jan 23 00:37:33 2008
@@ -2043,7 +2043,7 @@
         if (!namespaceMap.values().contains(targetNameSpace)){
             // i.e this target namespace not exists in the namesapce map
             // find a non exists prefix to add this target namesapce
-            while (namespaceMap.keySet().contains(prefix)){
+            while ((prefix == null) || namespaceMap.keySet().contains(prefix)){
                 prefix = "ns" + nsCount++;
             }
             namespaceMap.put(prefix,targetNameSpace);



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org