You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2005/07/22 23:42:26 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/impl/xs/opti SchemaDOM.java
mrglavas 2005/07/22 14:42:26
Modified: java/src/org/apache/xerces/impl/xs/opti SchemaDOM.java
Log:
Fixing JIRA Issue #1088:
http://issues.apache.org/jira/browse/XERCESJ-1088
An NPE was being thrown from processAttValue for a null namespace URI.
Should be fixed now. We now pass in the empty string if the URI is null.
Revision Changes Path
1.11 +4 -1 xml-xerces/java/src/org/apache/xerces/impl/xs/opti/SchemaDOM.java
Index: SchemaDOM.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/opti/SchemaDOM.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- SchemaDOM.java 16 Dec 2004 16:45:20 -0000 1.10
+++ SchemaDOM.java 22 Jul 2005 21:42:26 -0000 1.11
@@ -375,6 +375,9 @@
while(currPrefixes.hasMoreElements()) {
String prefix = (String)currPrefixes.nextElement();
String uri = namespaceContext.getURI(prefix);
+ if (uri == null) {
+ uri = XMLSymbols.EMPTY_STRING;
+ }
if (!namespaces.contains(prefix)) {
// have to declare this one
if(prefix == XMLSymbols.EMPTY_STRING) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org