zzhoujay / RichText

Android平台下的富文本解析器,支持Html和Markdown
MIT License
3.92k stars 560 forks source link

NullPointerException 后台统计发现的一个崩溃问题 #378

Open YaakovHuang opened 4 years ago

YaakovHuang commented 4 years ago
Back traces starts.
java.lang.RuntimeException: An error occurred while executing doInBackground()
 at android.os.AsyncTask$3.done(AsyncTask.java:325)
 at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
 at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
 at java.util.concurrent.FutureTask.run(FutureTask.java:242)
 at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
 at java.lang.Thread.run(Thread.java:762)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.io.File.mkdirs()' on a null object reference
 at c.j.a.a.w(DiskLruCache.java:14)
 at c.n.c.i.a.e(BitmapPool.java:2)
 at c.n.c.i.a.f(BitmapPool.java:2)
 at c.n.c.n.g.a(DefaultImageGetter.java:4)
 at c.n.c.e.a(RichText.java:16)
 at c.n.c.o.a.b(CachedSpannedParser.java:32)
 at c.n.c.o.a.d(CachedSpannedParser.java:3)
 at c.n.c.e.j(RichText.java:10)
 at c.n.c.e$b.a(RichText.java:2)
 at c.n.c.e$b.doInBackground(RichText.java:1)
 at android.os.AsyncTask$2.call(AsyncTask.java:305)
 at java.util.concurrent.FutureTask.run(FutureTask.java:237)
 ... 4 more
Back traces ends.

希望作者能够抽个时间修复一下