Android无法System.out.println出null
今天在采集错误时,发现有一个诡异异常:
com.android.internal.os.LoggingPrintStream.println(LoggingPrintStream.java:298)
抛出空指针异常,NullPointerException,奇怪了,我没有调用这个方法啊,只是
System.out.println()出字符串信息?难不成println空指针字符串会出错为了验证这个问题,我特地写了如下代码再onCreate()里:
294 @Override295 public synchronized void println(String s) {296 if (builder.length() == 0) {297 // Optimization for a simple println.298 int length = s.length();299300 int start = 0;....