msal-flutter icon indicating copy to clipboard operation
msal-flutter copied to clipboard

Errors running and even the sample does not run

Open dwhiteddsoft opened this issue 5 years ago • 8 comments

We noticed our usage of msal_flutter started to fail. As we went back to figure out what was wrong, we simply ran your example app and it errors out in the same way which makes us think it is an environment error. Here is the error when it is run: D/MsalFlutter( 4843): Got scopes: null D/MsalFlutter( 4843): Got cleintId: removed by me D/MsalFlutter( 4843): Got authority: https://owltechindustries.b2clogin.com/tfp/owltechindustries.onmicrosoft.com/B2C_1_signin_signup D/MsalFlutter( 4843): Authority not null D/MsalFlutter( 4843): Creating with: removed by me - https://owltechindustries.b2clogin.com/tfp/owltechindustries.onmicrosoft.com/B2C_1_signin_signup D/MsalFlutter( 4843): Getting the created listener E/AndroidRuntime( 4843): FATAL EXCEPTION: pool-4-thread-1 E/AndroidRuntime( 4843): Process: uk.co.moodio.msal_flutter_example, PID: 4843 E/AndroidRuntime( 4843): java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.hashCode()' on a null object reference E/AndroidRuntime( 4843): at com.microsoft.identity.common.internal.request.OperationParameters.hashCode(OperationParameters.java:252) E/AndroidRuntime( 4843): at com.microsoft.identity.common.internal.controllers.BaseCommand.hashCode(BaseCommand.java:123) E/AndroidRuntime( 4843): at java.util.HashMap.hash(HashMap.java:338) E/AndroidRuntime( 4843): at java.util.LinkedHashMap.get(LinkedHashMap.java:464) E/AndroidRuntime( 4843): at android.util.LruCache.get(LruCache.java:117) E/AndroidRuntime( 4843): at com.microsoft.identity.common.internal.controllers.CommandResultCache.get(CommandResultCache.java:48) E/AndroidRuntime( 4843): at com.microsoft.identity.common.internal.controllers.CommandDispatcher$1.run(CommandDispatcher.java:90) E/AndroidRuntime( 4843): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) E/AndroidRuntime( 4843): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) E/AndroidRuntime( 4843): at java.lang.Thread.run(Thread.java:764)

Environment looks like: Flutter: Flutter (Channel stable, v1.9.1+hotfix.4, on Mac OS X 10.15.1 19B88, locale en-US) Dart version 2.5.0 Android Studio 3.5.3 Flutter plugin version 42.1.1 Dart plugin version 191.8593 Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405) ext.kotlin_version = '1.3.50' (in. build.gradle)

Any thoughts appreciated as we are a little surprise it suddenly stopped working

dwhiteddsoft avatar Dec 17 '19 19:12 dwhiteddsoft