LuckSiege / LuckSiege/PictureSelector
闪退
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?
#### 当前使用的版本是多少?
```
3.11.2
```
## Will this problem occur in demo?
#### Demo能否复现这问题?
```
不能
```
## Describe the problem or provide an error log?
#### 描述问题或提供错误log?
```
Fatal Exception: java.lang.NullPointerException
Attempt to invoke virtual method 'void com.luck.picture.lib.widget.BottomNavBar.setOriginalCheck()' on a null object reference
com.luck.picture.lib.PictureSelectorPreviewFragment.onCheckOriginalChange (PictureSelectorPreviewFragment.java:240)
com.luck.picture.lib.basic.PictureCommonFragment.sendSelectedOriginalChangeEvent (PictureCommonFragment.java:808)
com.luck.picture.lib.PictureSelectorFragment$8.onCheckOriginalChange (PictureSelectorFragment.java:601)
com.luck.picture.lib.widget.BottomNavBar$1.onCheckedChanged (BottomNavBar.java:67)
android.widget.CompoundButton.setChecked (CompoundButton.java:222)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:936)
```
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 the stack trace in PictureSelectorPreviewFragment.java:240 and trace the original-selection callback through PictureCommonFragment.java:808, PictureSelectorFragment.java:601, and BottomNavBar.java:67. Reproduce the crash outside the demo if possible by changing the original-selection state in preview, then verify that this interaction no longer throws a NullPointerException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100