LuckSiege / LuckSiege/PictureSelector
Attempt to invoke virtual method 'long com.luck.picture.lib.entity.LocalMediaFolder.getBucketId()' 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?
#### 当前使用的版本是多少?
```
io.github.lucksiege:pictureselector:v3.11.1
```
## Will this problem occur in demo?
#### Demo能否复现这问题?
```
不能复现。
```
## Describe the problem or provide an error log?
#### 描述问题或提供错误log?
```
bugly 上报日志
#1329051 java.lang.NullPointerException
Attempt to invoke virtual method 'long com.luck.picture.lib.entity.LocalMediaFolder.getBucketId()' on a null object reference
com.luck.picture.lib.PictureSelectorFragment$7.onItemClick(PictureSelectorFragment.java:518)
```
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 by inspecting PictureSelectorFragment.java at line 518, especially the onItemClick handler named in the stack trace. Determine which folder value is null in the reported interaction and review the surrounding folder-selection flow. Done means the reported NullPointerException no longer occurs, with a regression check for that path.
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
- Needs clarification
- Newbie friendliness
- 35/100