PrintStream.java (print): Handle null string argument.
* java/io/PrintStream.java (print): Handle null string argument. (println): Likewise. From-SVN: r26294
This commit is contained in:
parent
36ba9cb8d2
commit
e086449d2a
2 changed files with 7 additions and 2 deletions
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue