Muljin / msal-flutter

BSD 3-Clause "New" or "Revised" License
9 stars 37 forks source link

Java null pointer exception #24

Open qaniel opened 1 year ago

qaniel commented 1 year ago

Getting this error on my app startup

E/AndroidRuntime(11067): java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference
E/AndroidRuntime(11067):    at com.microsoft.identity.client.PublicClientApplicationConfigurationFactory.initializeConfigurationInternal(PublicClientApplicationConfigurationFactory.java:96)
E/AndroidRuntime(11067):    at com.microsoft.identity.client.PublicClientApplicationConfigurationFactory.initializeConfiguration(PublicClientApplicationConfigurationFactory.java:60)
E/AndroidRuntime(11067):    at com.microsoft.identity.client.PublicClientApplication$3.run(PublicClientApplication.java:366)
E/AndroidRuntime(11067):    at java.lang.Thread.run(Thread.java:1012)

I have no idea what it could be, any hint guys?

Abhi011999 commented 1 year ago

don't trust readme file go into example, check out the latest code and run from there worked for me

nayanAubie commented 1 year ago

Same issue for me

Noahbanderson commented 7 months ago

I believe the error is thrown while trying to parse the msal_default_config.json file. I took the example's file and merged it with what the android app registration page gave me (and when they conflicted I used the properties in the app registration page over the example's file).