elvishew/xLog

A frequent crash on API 29

Closed this issue · 4 comments

java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io.BufferedWriter.write(java.lang.String)' on a null object reference at com.elvishew.xlog.printer.file.FilePrinter$Writer.null a(null)(FilePrinter.java:2) at com.elvishew.xlog.printer.file.FilePrinter.null b(null)(FilePrinter.java:143) at com.elvishew.xlog.printer.file.FilePrinter$Worker.null run(null)(FilePrinter.java:18) at java.lang.Thread.null run(null)(Thread.java:919)
image

@yujiangtao668 Can you tell what path do you save the logs into? Maybe there is something different in android 29, but need some further investigation.

@elvishew sdcard/Android/data/com.xx.xxx/files/log/xx.txt This is the internal storage address of the phone, there should be no problem, right?

Track in #70