This is a bug, since the argument may be null:
public final void write(String s) throws IOException
{
write(s, 0, s.length());
}
It could be changed to this:
public final void write(String s) throws IOException
{
if (s != null)
{
write(s, 0, s.length());
}
}
or this:
public final void write(String s) throws IOException
{
if (s == null) {
s = "";
}
write(s, 0, s.length());
}
I found a post about this from over 2 years ago, but the latest code (1.4)
isn't fixed.
************************************
Daniel Zajic
12600 SW Crescent St #426
Beaverton, OR 97005
503.523.2503
http://www.dzajic.com
************************************
---------------------------------
Get your email and more, right on the new Yahoo.com