You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ar...@locus.apache.org on 2000/07/13 03:11:34 UTC
cvs commit: xml-xerces/java/src/org/apache/xml/serialize XMLSerializer.java
arkin 00/07/12 18:11:33
Modified: java/src/org/apache/xml/serialize XMLSerializer.java
Log:
Patch to fix null format exception
Revision Changes Path
1.14 +3 -3 xml-xerces/java/src/org/apache/xml/serialize/XMLSerializer.java
Index: XMLSerializer.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xml/serialize/XMLSerializer.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- XMLSerializer.java 2000/06/02 23:35:43 1.13
+++ XMLSerializer.java 2000/07/13 01:11:33 1.14
@@ -97,7 +97,7 @@
* spaces at beginning of line will be stripped.
*
*
- * @version $Revision: 1.13 $ $Date: 2000/06/02 23:35:43 $
+ * @version $Revision: 1.14 $ $Date: 2000/07/13 01:11:33 $
* @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
* @see Serializer
*/
@@ -140,7 +140,7 @@
public XMLSerializer( Writer writer, OutputFormat format )
{
super( format != null ? format : new OutputFormat( Method.XML, null, false ) );
- format.setMethod( Method.XML );
+ _format.setMethod( Method.XML );
setOutputCharStream( writer );
}
@@ -156,7 +156,7 @@
public XMLSerializer( OutputStream output, OutputFormat format )
{
super( format != null ? format : new OutputFormat( Method.XML, null, false ) );
- format.setMethod( Method.XML );
+ _format.setMethod( Method.XML );
setOutputByteStream( output );
}