Author: midon
Date: Sat Oct 25 10:38:32 2008
New Revision: 707872
URL: http://svn.apache.org/viewvc?rev=707872&view=rev
Log:
ODE-402 a colon does not always delimit a namespace
Modified:
ode/trunk/il-common/src/main/java/org/apache/ode/il/OMUtils.java
Modified: ode/trunk/il-common/src/main/java/org/apache/ode/il/OMUtils.java
URL:
http://svn.apache.org/viewvc/ode/trunk/il-common/src/main/java/org/apache/ode/il/OMUtils.java?rev=707872&r1=707871&r2=707872&view=diff
==============================================================================
--- ode/trunk/il-common/src/main/java/org/apache/ode/il/OMUtils.java (original)
+++ ode/trunk/il-common/src/main/java/org/apache/ode/il/OMUtils.java Sat Oct 25
10:38:32 2008
@@ -94,7 +94,9 @@
int colonIdx = attr.getAttributeValue().indexOf(":");
if (colonIdx > 0) {
OMNamespace attrValNs =
element.findNamespaceURI(attr.getAttributeValue().substring(0, colonIdx));
- domElement.setAttributeNS(DOMUtils.NS_URI_XMLNS, "xmlns:"+
attrValNs.getPrefix(), attrValNs.getNamespaceURI());
+ if(attrValNs!=null){
+ domElement.setAttributeNS(DOMUtils.NS_URI_XMLNS, "xmlns:"+
attrValNs.getPrefix(), attrValNs.getNamespaceURI());
+ }
}
}