PictureSelector NullPointerException: PictureSelectionConfig.cameraPath' on a null object reference

fnatzsnv  于 4个月前  发布在  其他
关注(0)|答案(4)|浏览(103)

Current use version?

当前使用的版本是多少?
V3.10.8

Will this problem occur in demo?

Demo能否复现这问题?
无法复现

Describe the problem or provide an error log?

描述问题或提供错误log?
Caused by:
5
java.lang.NullPointerException:Attempt to read from field 'java.lang.String com.luck.picture.lib.config.PictureSelectionConfig.cameraPath' on a null object reference
6
com.luck.picture.lib.basic.PictureCommonFragment.onActivityResult(PictureCommonFragment.java:45)
7
com.luck.picture.lib.PictureOnlyCameraFragment.onActivityResult(PictureOnlyCameraFragment.java:1)
8
androidx.fragment.app.FragmentManager$7.onActivityResult(FragmentManager.java:10)
9
androidx.fragment.app.FragmentManager$7.onActivityResult(FragmentManager.java:1)
10
androidx.activity.result.ActivityResultRegistry.doDispatch(ActivityResultRegistry.java:5)
11
androidx.activity.result.ActivityResultRegistry.dispatchResult(ActivityResultRegistry.java:2)
12
androidx.activity.ComponentActivity.onActivityResult(ComponentActivity.java:1)
13
androidx.fragment.app.FragmentActivity.onActivityResult(FragmentActivity.java:2)
14
android.app.Activity.dispatchActivityResult(Activity.java:8309)
15
android.app.ActivityThread.deliverResults(ActivityThread.java:5191)
16
android.app.ActivityThread.performResumeActivity(ActivityThread.java:4520)
17
android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4575)
18
android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)
19
android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:192)
yduiuuwa

yduiuuwa1#

me too
@LuckSiege
com.luck.picture.lib.basic.PictureCommonFragment.onActivityResult (PictureCommonFragment.java:1138) this line

lh80um4z

lh80um4z2#

有没有可能是config空了呢...

5lwkijsr

5lwkijsr3#

测试下来,这个cameraPath即使等于空也不过于空指针,你是直接引用使用的3.10.8还是引用的模块有改动吗?

直接引用的,大佬有群吗?我可以发崩溃视频给你

slhcrj9b

slhcrj9b4#

测试下来,这个cameraPath即使等于空也不至于空指针,你是直接引用的3.10.8还是引用的module 有改动吗?

相关问题