LuckSiege / LuckSiege/PictureSelector
java.lang.NullPointerException
Open
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.11.1
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 'java.lang.String java. io.File.getPath' on a null object reference
com.luck.picture.lib.utils.FileDirMap. init (FileDirMap.java:23)
com.luck.picture.lib.basic.PictureCommonFragment.onViewCreated (PictureCommonFragment.java:300)
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 FileDirMap.java at line 23 and the call from PictureCommonFragment.java at line 300, using the supplied stack trace as the entry point. Determine which value is null in the reported production path and verify that the resulting NullPointerException is no longer triggered.
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
- 30/100