Crash on Android 7.0
See original GitHub issueHello,
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:
- Created 4 years ago
- Comments:11 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@shahzaibj Great! Thank you very much. Looking forward to it!
@xyzwilliamxyz The latest release of MSAL with this fix is available on Maven Central. The release version is
1.4.0