Hi, I've noticed that there are some classes that do not validate input parameters. For example the constructor
o.a.c.io.output.XmlStreamWriter(final OutputStream out, final String defaultEncoding) does not check whether out is null, which will lead to late failure in detectEncoding(final char[] cbuf, final int off, final int len). Shouldn't we check for illegal null inputs in such situations? Benedikt -- http://people.apache.org/~britter/ http://www.systemoutprintln.de/ http://twitter.com/BenediktRitter http://github.com/britter