LuckSiege / LuckSiege/PictureSelector
NullPointerException: PictureSelectionConfig.cameraPath' on a null object reference
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 13.6k
- Forks
- 3.1k
- PR merge metrics
- No merged PRs in 30d
Description
## 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)
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with PictureCommonFragment.java at onActivityResult, line 45, then trace the call from PictureOnlyCameraFragment.onActivityResult shown in the stack trace. Use the reported camera-result path as the starting case; done means the reported NullPointerException no longer occurs, though the issue provides no reproducible demo steps.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100