LuckSiege / LuckSiege/PictureSelector

Failure delivering result ResultInfo to activity : java.lang.NullPointerException

Open
#2,834 0 comments 0 reactions 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?
#### 当前使用的版本是多少?
3.11.2
```

```

## Will this problem occur in demo?
#### Demo能否复现这问题?
不能
```

```

## Describe the problem or provide an error log?
#### 描述问题或提供错误log?
线上应用bug日志,android 7 至 Android 13 都有
```
Fatal Exception: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=803143505, result=-1, data=Intent { dat=content://com.google.android.apps.photos.contentprovider/... flg=0x1 clip={text/uri-list {U(content)}} }} to activity {com.aiproject.mirrorai/com.example.myapplication.ui.UploadFaceActivity}: java.lang.NullPointerException
at android.app.ActivityThread.deliverResults(ActivityThread.java:5455)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:5494)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:67)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2398)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loopOnce(Looper.java:238)
at android.os.Looper.loop(Looper.java:357)
at android.app.ActivityThread.main(ActivityThread.java:8109)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:957)
```

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 with the reported ResultInfo failure and the activity-result handling in UploadFaceActivity, the only application entry point named in the log. Trace the content URI from the Android result into PictureSelector and compare behavior across Android 7–13, noting that the issue reports no demo reproduction. Done means the null source and affected library path are identified and a reproducible failure is available.

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
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.