LuckSiege / LuckSiege/PictureSelector

Attempt to invoke virtual method 'long com.luck.picture.lib.entity.LocalMediaFolder.getBucketId()' on a null object reference

Open
#2,865 1 comment 1 reaction 0 assignees View on GitHub

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)

```
截屏2024-03-25 15 57 01

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.