question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.lang.RuntimeException: Failure delivering result ResultInfo

See original GitHub issue

Configuration

  • Version: ‘0.10.0’
  • Integration: (native(Kotlin)
  • Identity provider: (Auth0)
  • compileSdkVersion: 31
  • targetSdkVersion: 31

Description

hi, for some android devices (specially Android version 8.1.0, 9, 12)crash with this error. Result state= -1(RESULT_OK) “data” also not null, data contain “authorizationCode”.

java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1811784904, result=-1, data=Intent { dat=com.abc.v3.4df:/oauth2redirect?code=QdQk5NJq8zTKWbKjX-V31efagh62nnQgL3J06q0v8M0&scope=openid profile tenant_code employee_code webapi offline_access&state=W0iaArQHtx2IdpVhb0vM1Q&session_state=Ehnxm1IKypA4-tfbGjJlj5rg2DBhV1-Kng46hu9pqFs.hOLT6ft_Ba0cTomMFd1fKw (has extras) }}

Can u provide me some ways to prevent it?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
mayumipalcommented, Dec 13, 2021

Still I can’t reproduce this issue in my side. My app is used by over 3000 clients, This issue occurred after I changed compile and target SDK version to 31. But not from all divices. Below I have attached the log I received from my issue tracker.

java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1796253077, result=-1, data=Intent { dat=com.myapps.v3.3i8slmp:/oauth2redirect?code=_j2NMg1e983IJTDuDxgNtt2qw4mRH2XZ8PIL0rN6_cE&scope=openid profile tenant_code employee_code webapi offline_access&state=TYo8tpwAgtgbcZjl1j1F_A&session_state=P0C9NV-GzbfoRXl-N_Oqv-sr53liXCdvzo4eqST4VSU.xM_ZZBLE_fZ_4VV2AzhmqA (has extras) }} to activity {com.myapps.v3/com.myapps.v3.auth.ui.activity.LoginActivity}: java.lang.NullPointerException
1 at android.app.ActivityThread.deliverResults(ActivityThread.java:4533)
2 at android.app.ActivityThread.handleSendResult(ActivityThread.java:4577)
3 at android.app.ActivityThread.-wrap22(Unknown Source:0)
4 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1789)
5 at android.os.Handler.dispatchMessage(Handler.java:106)
6 at android.os.Looper.loop(Looper.java:164)
7 at android.app.ActivityThread.main(ActivityThread.java:7025)
8 at java.lang.reflect.Method.invoke(Native Method)
9 at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)
10 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)
11Caused by: java.lang.NullPointerException
12 at x8.a.c(:17)
13 at androidx.activity.result.ActivityResultRegistry.a(:1)
14 at androidx.activity.ComponentActivity.onActivityResult(Unknown Source:2)
15 at androidx.fragment.app.r.onActivityResult(Unknown Source:5)
16 at android.app.Activity.dispatchActivityResult(Activity.java:7672)
17 at android.app.ActivityThread.deliverResults(ActivityThread.java:4529)
18 ... 9 more
0reactions
agologancommented, Dec 13, 2021

to activity {com.myapps.v3/com.myapps.v3.auth.ui.activity.LoginActivity}

That is your own activity not the library. Easy way to debug this is to mock the intent in your app and start it.

Closing the issue. Will reopen if you find something that is related to our lib.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failure delivering result ResultInfo{who=null, request=1888 ...
Adding this first conditional should work: protected void onActivityResult(int requestCode, int resultCode, Intent data) { if(resultCode !=
Read more >
[Android] java.lang.RuntimeException: Failure delivering ...
There's some issue when I execute an Android Intent to open another app, and then when I come back with back button.
Read more >
Failure delivering result ResultInfo{who=null, request=1888 ...
Android : java. lang. RuntimeException : Failure delivering result ResultInfo {who=null, request=1888, result=0, data=null} to activity ...
Read more >
Failure delivering result ResultInfo{who=null, request=1888 ...
Android – java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1888, result=0, data=null} to activity.
Read more >
NPE in AutofillManager (#2332) · Issues · briar / briar · GitLab
String)' on a null object reference java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:autoFillAuth:, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found