Commit e086449d by Tom Tromey Committed by Tom Tromey

PrintStream.java (print): Handle null string argument.

	* java/io/PrintStream.java (print): Handle null string argument.
	(println): Likewise.

From-SVN: r26294
parent 36ba9cb8
1999-04-08 Tom Tromey <tromey@cygnus.com>
* java/io/PrintStream.java (print): Handle null string argument.
(println): Likewise.
1999-04-07 Warren Levy <warrenl@cygnus.com>
* java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
......
......@@ -99,7 +99,7 @@ public class PrintStream extends FilterOutputStream
public void print (String str)
{
print (str, true);
print (str == null ? "null" : str, true);
}
public void print (char ch)
......@@ -157,7 +157,7 @@ public class PrintStream extends FilterOutputStream
public void println (String str)
{
print (str, false);
print (str == null ? "null" : str, false);
println ();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment