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:[EMAIL PROTECTED]">Stefano Mazzocchi</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]