Log打印日志遇到的问题

Log日志打印出现空指针问题

AndroidRuntime(372): Caused by: java.lang.NullPointerException: println needs a message
使用Log.e(TAG,object)打印日志,由于object为null,Log内部调用object.toString()方法时,产生空指针问题

原文地址:https://www.cnblogs.com/neillee/p/5428947.html