开发者社区> 问答> 正文

afinal加载图片多了,报错了?报错

08-14 17:08:22.463: E/AndroidRuntime(30483): FATAL EXCEPTION: Thread-1802
08-14 17:08:22.463: E/AndroidRuntime(30483): java.lang.RuntimeException: An error occured while executing doInBackground()
08-14 17:08:22.463: E/AndroidRuntime(30483): at net.tsz.afinal.core.AsyncTask$3.done(AsyncTask.java:157)
08-14 17:08:22.463: E/AndroidRuntime(30483): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
08-14 17:08:22.463: E/AndroidRuntime(30483): at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
08-14 17:08:22.463: E/AndroidRuntime(30483): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
08-14 17:08:22.463: E/AndroidRuntime(30483): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
08-14 17:08:22.463: E/AndroidRuntime(30483): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
08-14 17:08:22.463: E/AndroidRuntime(30483): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
08-14 17:08:22.463: E/AndroidRuntime(30483): at java.lang.Thread.run(Thread.java:856)
08-14 17:08:22.463: E/AndroidRuntime(30483): Caused by: java.lang.NullPointerException
08-14 17:08:22.463: E/AndroidRuntime(30483): at net.tsz.afinal.FinalBitmap$BitmapLoadAndDisplayTask.doInBackground(FinalBitmap.java:696)
08-14 17:08:22.463: E/AndroidRuntime(30483): at net.tsz.afinal.FinalBitmap$BitmapLoadAndDisplayTask.doInBackground(FinalBitmap.java:1)
08-14 17:08:22.463: E/AndroidRuntime(30483): at net.tsz.afinal.core.AsyncTask$2.call(AsyncTask.java:145)
08-14 17:08:22.463: E/AndroidRuntime(30483): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
08-14 17:08:22.463: E/AndroidRuntime(30483): ... 4 more

加载图片多了,老是抱着个错,求大神解答下,

展开
收起
爱吃鱼的程序员 2020-06-14 22:44:53 400 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    doInBackground()这个函数里抛Causedby:java.lang.NullPointerException空指针异常,调试看下哪个对象是空的我知道啊,但是这里是报的afnal源码错误,不知道怎么去调试,也不知道哪个地方有问题。。。同问,也碰到相同情况……有正确答案的请@我……

    2020-06-14 22:45:09
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载