在Android里面输出日志,例如,Log.i("message",null); 会抛出该异常。 如果是System.out.println(null); 则会抛出异常:java.lang.NullPointerException 没有prinltn后面的。