Open dominic-simplan opened 11 months ago
Hello @wrobins , I can see that you fixed the above mentioned line but you also introduced a NonNull annotation here: https://github.com/wrobins/cordova-plugin-msal/commit/d909884c6638ee00c132101fc11898083bc4d564#diff-e5923747b7842092fa19ae5c75aca5d73f0465b348be327edf209c96e59fa444R580
Now it fails for me with v4.1.1 at the NonNull check. Is there any specific reason for the check?
As far as I can see, the claims are allowed to be null by the msal android library: https://github.com/AzureAD/microsoft-authentication-library-for-android/blob/f0487a4cbcba7b778185bfe4278704d580b35bd2/msal/src/main/java/com/microsoft/identity/client/Account.java#L137
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.