You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2001/04/11 17:32:30 UTC
cvs commit: xml-cocoon/src/org/apache/cocoon/components/sax XMLByteStreamCompiler.java
cziegeler 01/04/11 08:32:30
Modified: src/org/apache/cocoon/components/sax Tag: xml-cocoon2
XMLByteStreamCompiler.java
Log:
Hotfix for the NPE during caching - we have to further investigate here
Revision Changes Path
No revision
No revision
1.1.2.2 +2 -2 xml-cocoon/src/org/apache/cocoon/components/sax/Attic/XMLByteStreamCompiler.java
Index: XMLByteStreamCompiler.java
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/components/sax/Attic/XMLByteStreamCompiler.java,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -r1.1.2.1 -r1.1.2.2
--- XMLByteStreamCompiler.java 2001/04/11 10:52:47 1.1.2.1
+++ XMLByteStreamCompiler.java 2001/04/11 15:32:29 1.1.2.2
@@ -24,7 +24,7 @@
*
* @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
* @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
- * @version CVS $Revision: 1.1.2.1 $ $Date: 2001/04/11 10:52:47 $
+ * @version CVS $Revision: 1.1.2.2 $ $Date: 2001/04/11 15:32:29 $
*/
public final class XMLByteStreamCompiler
@@ -111,7 +111,7 @@
out.writeString(atts.getType(i));
out.writeString(atts.getValue(i));
}
- out.writeString(namespaceURI);
+ out.writeString((namespaceURI == null ? "" : namespaceURI));
out.writeString(localName);
out.writeString(qName);
} catch (Exception e) {
@@ -123,7 +123,7 @@
throws SAXException {
try {
out.writeEvent(END_ELEMENT);
- out.writeString(namespaceURI);
+ out.writeString((namespaceURI == null ? "" : namespaceURI));
out.writeString(localName);
out.writeString(qName);
} catch (Exception e) {
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org
AW: cvs commit: xml-cocoon/src/org/apache/cocoon/components/sax XMLByteStreamCompiler.java
Posted by Carsten Ziegeler <cz...@sundn.de>.
> cziegeler 01/04/11 08:32:30
>
> Modified: src/org/apache/cocoon/components/sax Tag: xml-cocoon2
> XMLByteStreamCompiler.java
> Log:
> Hotfix for the NPE during caching - we have to further investigate here
>
> Revision Changes Path
> No revision
Hi,
this is a little bit strange - I don't know where the source for this error is,
but the XMLByteStreamCompiler gets a startElement() event, with the
namespaceURI set to null !
Reading the SAX specs this is not allowed. I included now for safety a simple
test to avoid this situation, but we need to find out the source for this.
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org