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
线上收集的日志
版本: v2.7.3-rc07
系统版本
Android 10,level 29
ROM
Oppo/COLOROS
设备机型
PACM00
我在issues上看到相关问题了 不知道为何又复现了
java.lang.RuntimeException:Failure delivering result ResultInfo{who=null, request=188, result=-1, data=Intent { (has extras) }} to activity {com.xxx.xxxx/com.xxx.xxx.ui.ClassDynamicsActivity}: java.lang.NullPointerException
android.app.ActivityThread.deliverResults(ActivityThread.java:4631)
Caused by:
java.lang.NullPointerException:
java.io.File.(File.java:300)
com.xxx.xxx.ui.ClassDynamicsActivity.onActivityResult(ClassDynamicsActivity.java:321)
android.app.Activity.dispatchActivityResult(Activity.java:7583)
android.app.ActivityThread.deliverResults(ActivityThread.java:4624)
android.app.ActivityThread.handleSendResult(ActivityThread.java:4673)
android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49)
android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2009)
android.os.Handler.dispatchMessage(Handler.java:106)
android.os.Looper.loop(Looper.java:224)
android.app.ActivityThread.main(ActivityThread.java:7053)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:536)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:876)
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 at ClassDynamicsActivity.onActivityResult, especially line 321, where the stack trace reports a NullPointerException while constructing java.io.File. Reproduce the activity-result flow on Android 10 with the reported Oppo/COLOROS device details and determine which input is null; done means the flow no longer crashes and the regression is covered by an appropriate verification.
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
- 25/100