mirror of
https://github.com/corda/corda.git
synced 2024-12-29 09:18:58 +00:00
Support printing of null references
This commit is contained in:
parent
9621679d2a
commit
101b0c3b0e
@ -23,7 +23,7 @@ public class PrintStream extends OutputStream {
|
||||
}
|
||||
|
||||
public void print(Object o) {
|
||||
print(o.toString());
|
||||
print(String.valueOf(o));
|
||||
}
|
||||
|
||||
public void print(char c) {
|
||||
|
@ -379,7 +379,7 @@ public final class String implements Comparable<String> {
|
||||
public native String intern();
|
||||
|
||||
public static String valueOf(Object s) {
|
||||
return s.toString();
|
||||
return s == null ? "null" : s.toString();
|
||||
}
|
||||
|
||||
public static String valueOf(boolean v) {
|
||||
|
Loading…
Reference in New Issue
Block a user