NPE in AuthorizationFragment
See original GitHub issueTwo occurences of similar NPE reported in App Center diagnostics. This is an live app in production, auth flow is handled in webview.
Nexus 5X Android 6.0.1 MSAL 1.5.1
com.microsoft.identity.common.internal.providers.oauth2.AuthorizationFragment.finish
AuthorizationFragment.java, line 117
java.lang.NullPointerException: Attempt to invoke virtual method 'd0.l.d.y d0.l.d.q.a()' on a null object reference
com.microsoft.identity.common.internal.providers.oauth2.AuthorizationFragment.finish AuthorizationFragment.java:117
com.microsoft.identity.common.internal.providers.oauth2.WebViewAuthorizationFragment$AuthorizationCompletionCallback.onChallengeResponseReceived WebViewAuthorizationFragment.java:242
com.microsoft.identity.common.internal.ui.webview.AzureActiveDirectoryWebViewClient.processRedirectUrl AzureActiveDirectoryWebViewClient.java:196
com.microsoft.identity.common.internal.ui.webview.AzureActiveDirectoryWebViewClient.handleUrl AzureActiveDirectoryWebViewClient.java:137
com.microsoft.identity.common.internal.ui.webview.AzureActiveDirectoryWebViewClient.shouldOverrideUrlLoading AzureActiveDirectoryWebViewClient.java:99
org.chromium.android_webview.AwContentsClientBridge.shouldOverrideUrlLoading AwContentsClientBridge.java:17
android.os.MessageQueue.nativePollOnce MessageQueue.java
android.os.MessageQueue.next MessageQueue.java:323
android.os.Looper.loop Looper.java:135
android.app.ActivityThread.main ActivityThread.java:5421
java.lang.reflect.Method.invoke Method.java
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run ZygoteInit.java:726
com.android.internal.os.ZygoteInit.main ZygoteInit.java:616
Galaxy A5(2016) Android 7.0 MSAL 1.4.0
com.microsoft.identity.common.internal.providers.oauth2.AuthorizationFragment.finish
AuthorizationFragment.java, line 111
java.lang.NullPointerException: Attempt to invoke virtual method 'c0.l.d.y c0.l.d.q.a()' on a null object reference
com.microsoft.identity.common.internal.providers.oauth2.AuthorizationFragment.finish AuthorizationFragment.java:111
com.microsoft.identity.common.internal.providers.oauth2.WebViewAuthorizationFragment$AuthorizationCompletionCallback.onChallengeResponseReceived WebViewAuthorizationFragment.java:218
com.microsoft.identity.common.internal.ui.webview.OAuth2WebViewClient.onReceivedError OAuth2WebViewClient.java:120
android.webkit.WebViewClient.onReceivedError WebViewClient.java:265
iu0.handleMessage iu0.java:133
android.os.Handler.dispatchMessage Handler.java:102
android.os.Looper.loop Looper.java:154
android.app.ActivityThread.main ActivityThread.java:6776
java.lang.reflect.Method.invoke Method.java
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run ZygoteInit.java:1496
com.android.internal.os.ZygoteInit.main ZygoteInit.java:1386
To Reproduce Unfortunately none, did not manage reproduce it on my devices. Bug reports from App Center is all I have.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to save private variables of each Fragment in the Activity ...
1 Answer 1 · This variant throws NullPointerException after rotating. I think I need to get instance of Fragments anyway. · Sorry my...
Read more >IV72648: NPE AND AIOB IN ORG.ECLIPSE.JDT TEST - IBM
Error Message: java.lang.NullPointerException and java.lang.ArrayIndexOutOfBoundsException in eclipse test.
Read more >Intercept NavigationUI.onNavDestinationSelected() to make ...
If the user selects this navigation destination, the app should navigate to the AuthorizationFragment and pop the backstack to this Fragment ...
Read more >How to save private variables of each Fragment in the Activity during ...
... RegistrationFragment(); mAuthorizationPageFragment = new AuthorizationFragment(); //Adding ... This variant throws NullPointerException after rotating.
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
This might have been fixed already in 1.5.2. Can you give it a try @pomian17?
@rpdome, sure, we will update MSAL for our next release. If crash will continue to occur, I’ll reopen this issue