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.

Crash on Android 7.0

See original GitHub issue

Hello,

I was testing MSAL on android 7.0 and I had this crash after completing an interactive registration authority.

java.lang.RuntimeException: Error receiving broadcast Intent { act=cancel_interactive_request_action flg=0x10 } in com.microsoft.identity.common.internal.providers.oauth2.AuthorizationFragment$1@8c50a2
        at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:1132)
        at android.os.Handler.handleCallback(Handler.java:751)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:154)
        at android.app.ActivityThread.main(ActivityThread.java:6077)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.microsoft.identity.common.internal.providers.oauth2.AuthorizationStrategy.completeAuthorization(int, int, android.content.Intent)' on a null object reference
        at com.microsoft.identity.client.internal.controllers.LocalMSALController.completeAcquireToken(LocalMSALController.java:205)
        at com.microsoft.identity.common.internal.controllers.InteractiveTokenCommand.notify(InteractiveTokenCommand.java:66)
        at com.microsoft.identity.common.internal.controllers.CommandDispatcher.completeInteractive(CommandDispatcher.java:468)
        at com.microsoft.identity.common.internal.providers.oauth2.AuthorizationFragment.sendResult(AuthorizationFragment.java:385)
        at com.microsoft.identity.common.internal.providers.oauth2.AuthorizationFragment.access$100(AuthorizationFragment.java:76)
        at com.microsoft.identity.common.internal.providers.oauth2.AuthorizationFragment$1.onReceive(AuthorizationFragment.java:143)
        at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:1122)
        at android.os.Handler.handleCallback(Handler.java:751) 
        at android.os.Handler.dispatchMessage(Handler.java:95) 
        at android.os.Looper.loop(Looper.java:154) 
        at android.app.ActivityThread.main(ActivityThread.java:6077) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)

on android 7.1 it seems to be working, I didn’t test it on older versions though. I will further investigate to check what I can find out.

Do you guys have an ideia of what it might be?

Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
xyzwilliamxyzcommented, Feb 20, 2020

@shahzaibj Great! Thank you very much. Looking forward to it!

0reactions
shahzaibjcommented, Feb 29, 2020

@xyzwilliamxyz The latest release of MSAL with this fix is available on Maven Central. The release version is 1.4.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crashes - Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >
app crashing on android version <=7 but working on >=7
I'm new in app development. When I run my code on emulator/phone with an android version less or equal to 7 the app...
Read more >
Crashes phone(android 7.0) #8704 - tachiyomiorg/tachiyomi
I tried with my tablet (Teclast, Android 11) but it works fine. I think logcats or crash logs will be useful to find...
Read more >
Crash on android 7 - Bugs reports - GDevelop Forum
The game runs fine in browser from gdevelop online, and on a recent device, but I've tested in on some old LG K10...
Read more >
Fix an installed Android app that isn't working - Google Support
Try the following steps if an app installed on your phone has any of these problems: Crashing. Won't open. Won't respond. Isn't working...
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