Closed kyh8496 closed 2 years ago
Fatal Exception: java.lang.NullPointerException Attempt to invoke interface method 'boolean android.content.SharedPreferences.getBoolean(java.lang.String, boolean)' on a null object reference
com.microsoft.appcenter.utils.storage.SharedPreferencesManager.getBoolean (SharedPreferencesManager.java:68) com.microsoft.appcenter.AbstractAppCenterService.isInstanceEnabled (AbstractAppCenterService.java:136) com.microsoft.appcenter.distribute.Distribute.registerReceiver (Distribute.java:617) com.microsoft.appcenter.distribute.Distribute.onActivityStarted (Distribute.java:545) android.app.Application.dispatchActivityStarted (Application.java:414)
androidx.appcompat.app.AppCompatActivity.onStart (AppCompatActivity.java:246) net.deali.buyer.base.BindingActivity.onStart (BindingActivity.kt:65) android.app.Instrumentation.callActivityOnStart (Instrumentation.java:1433)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:964)
Please describe the issue you are facing using the SDK.
Please list the steps used to reproduce your issue.
This issue appears intermittently on Crashlytics.
AppCenter.setLogLevel(Log.VERBOSE)
AppCenter.start(...)
Duplicate of #1610, already fixed in latest version
thank you
Description
Fatal Exception: java.lang.NullPointerException Attempt to invoke interface method 'boolean android.content.SharedPreferences.getBoolean(java.lang.String, boolean)' on a null object reference
com.microsoft.appcenter.utils.storage.SharedPreferencesManager.getBoolean (SharedPreferencesManager.java:68) com.microsoft.appcenter.AbstractAppCenterService.isInstanceEnabled (AbstractAppCenterService.java:136) com.microsoft.appcenter.distribute.Distribute.registerReceiver (Distribute.java:617) com.microsoft.appcenter.distribute.Distribute.onActivityStarted (Distribute.java:545) android.app.Application.dispatchActivityStarted (Application.java:414)
androidx.appcompat.app.AppCompatActivity.onStart (AppCompatActivity.java:246) net.deali.buyer.base.BindingActivity.onStart (BindingActivity.kt:65) android.app.Instrumentation.callActivityOnStart (Instrumentation.java:1433)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:964)
Please describe the issue you are facing using the SDK.
Repro Steps
Please list the steps used to reproduce your issue.
This issue appears intermittently on Crashlytics.
Details
AppCenter.setLogLevel(Log.VERBOSE)
before your call toAppCenter.start(...)
and include the logs here: not applied yet