sboag 00/12/31 01:51:44
Modified: java/src/org/apache/xalan/stree ElementImpl.java
Log:
Add 100 ms to wait arg so that posted exceptions can be checked
periodically.
Add defensive code for null namespace URI for attribute.
Revision Changes Path
1.21 +5 -2
xml-xalan/java/src/org/apache/xalan/stree/ElementImpl.java
Index: ElementImpl.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/stree/ElementImpl.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- ElementImpl.java 2000/11/23 04:57:37 1.20
+++ ElementImpl.java 2000/12/31 09:51:44 1.21
@@ -224,7 +224,7 @@
// Here we have to wait until the element is complete
while (!isComplete())
{
- m_doc.wait();
+ m_doc.wait(100);
throwIfParseError();
}
}
@@ -430,8 +430,11 @@
while (null != attr)
{
+ String attrURI = attr.getNamespaceURI();
+ if(null == attrURI) // defensive, shouldn't have to do this.
+ attrURI = "";
if (attr.getLocalName().equals(attrImpl.getLocalName())
- && attr.getNamespaceURI().equals(attrImpl.getNamespaceURI()))
+ && attrURI.equals(attrImpl.getNamespaceURI()))
{
if (null != attr.m_prev)
attr.m_prev.m_next = attr.m_next;