LoggingPrintStream prints "null" for null strings from
print(String) but throws an NPE from println(String).
Fix this by delegating to the underlying builder (and avoiding
the "fast" path when the input String == null)
bug: https://code.google.com/p/android/issues/detail?id=63380
Change-Id: I89c5c12db6ed5af8037d46f67369b38c5b4cbc9f
@Override
public synchronized void println(String s) {
- if (builder.length() == 0) {
+ if (builder.length() == 0 && s != null) {
// Optimization for a simple println.
int length = s.length();