You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Set java.util.Map.entrySet()' on a null object reference
at com.wrobins.cordova.plugin.MsalPlugin.processClaims(MsalPlugin.java:563)
at com.wrobins.cordova.plugin.MsalPlugin.getAccountObject(MsalPlugin.java:554)
at com.wrobins.cordova.plugin.MsalPlugin.getAuthResult(MsalPlugin.java:542)
at com.wrobins.cordova.plugin.MsalPlugin.access$1500(MsalPlugin.java:42)
at com.wrobins.cordova.plugin.MsalPlugin$6$1.onSuccess(MsalPlugin.java:390)
at com.microsoft.identity.client.PublicClientApplication.postAuthResult(PublicClientApplication.java:2023)
at com.microsoft.identity.client.SingleAccountPublicClientApplication$3.onTaskCompleted(SingleAccountPublicClientApplication.java:438)
at com.microsoft.identity.client.SingleAccountPublicClientApplication$3.onTaskCompleted(SingleAccountPublicClientApplication.java:429)
at com.microsoft.identity.common.java.controllers.CommandDispatcher.commandCallbackOnTaskCompleted(CommandDispatcher.java:562)
at com.microsoft.identity.common.java.controllers.CommandDispatcher.access$1000(CommandDispatcher.java:86)
at com.microsoft.identity.common.java.controllers.CommandDispatcher$4.run(CommandDispatcher.java:538)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7918)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Issue seems to be that the account object doesn't contain any claims and therefore the account.getClaims() returns null instead of a map.
The text was updated successfully, but these errors were encountered:
I am getting a NullPointerException error when calling
for a Azure AAD instance.
The error stack trace:
Issue seems to be that the account object doesn't contain any claims and therefore the
account.getClaims()
returns null instead of a map.The text was updated successfully, but these errors were encountered: