You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Frank Taffelt <fr...@interface-business.de> on 2000/07/10 13:38:26 UTC
serialize.XMLSerializer little patch
I made a small fix of the constructor of XMLSerializer.
The following problem occured 3 times:
public XMLSerializer( OutputStream output, OutputFormat format )
{
super( format != null ? format : new OutputFormat( Method.XML,
null, false ) );
format.setMethod( Method.XML ); // null pointer exception
setOutputByteStream( output );
}
if format==null there will be null pointer exception.
I changed
format.setMethod( Method.XML );
to
_format.setMethod( Method.XML );
please cc to me, i am not on the list.
here is the diff:
Index: XMLSerializer.java
===================================================================
RCS file:
/home/cvspublic/xml-xerces/java/src/org/apache/xml/serialize/XMLSerializer.java,v
retrieving revision 1.13
diff -r1.13 XMLSerializer.java
128c128
< format.setMethod( Method.XML );
---
> _format.setMethod( Method.XML );
143c143
< format.setMethod( Method.XML );
---
> _format.setMethod( Method.XML );
159c159
< format.setMethod( Method.XML );
---
> _format.setMethod( Method.XML );
--end diff
--
Thomas Guettler
Office:
<gu...@interface-business.de> http://www.interface-business.de
Private:
<gu...@gmx.de> http://yj.org/guettli