sandygao 2003/02/07 07:36:05
Modified: java/src/org/apache/xerces/impl/xs XSWildcardDecl.java
Log:
Fixing an NPE: if the namespace list in a wildcard is empty, toString() shouldn't
try to access the namespace array, because it's null in such case.
Revision Changes Path
1.11 +3 -1
xml-xerces/java/src/org/apache/xerces/impl/xs/XSWildcardDecl.java
Index: XSWildcardDecl.java
===================================================================
RCS file:
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/XSWildcardDecl.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- XSWildcardDecl.java 14 Jan 2003 20:21:45 -0000 1.10
+++ XSWildcardDecl.java 7 Feb 2003 15:36:05 -0000 1.11
@@ -523,6 +523,8 @@
buffer.append("\"");
break;
case NSCONSTRAINT_LIST:
+ if (fNamespaceList.length == 0)
+ break;
buffer.append("\"");
if (fNamespaceList[0] != null)
buffer.append(fNamespaceList[0]);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]