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 ve...@apache.org on 2005/04/25 16:44:06 UTC
cvs commit: ws-axis/java/src/org/apache/axis/message MessageElement.java
venkat 2005/04/25 07:44:06
Modified: java/src/org/apache/axis/message MessageElement.java
Log:
Applying the patch from Ashutosh for the issue AXIS-1757. I think the code change is too trivial to add a test case. If anybody thinks that this needs a test case, then i will add one.
Revision Changes Path
1.197 +3 -0 ws-axis/java/src/org/apache/axis/message/MessageElement.java
Index: MessageElement.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/message/MessageElement.java,v
retrieving revision 1.196
retrieving revision 1.197
diff -u -r1.196 -r1.197
--- MessageElement.java 8 Apr 2005 14:22:53 -0000 1.196
+++ MessageElement.java 25 Apr 2005 14:44:06 -0000 1.197
@@ -1824,6 +1824,9 @@
* @todo: this could be refactored to use getAttributeValue()
*/
public String getAttributeNS(String namespaceURI, String localName) {
+ if(namespaceURI == null) {
+ namespaceURI = "";
+ }
for (int i = 0; i < attributes.getLength(); i++) {
if (attributes.getURI(i).equals(namespaceURI) &&
attributes.getLocalName(i).equals(localName)) {