diff --git a/code/android-identity-library/src/main/java/com/adobe/marketing/mobile/identity/IdentityExtension.java b/code/android-identity-library/src/main/java/com/adobe/marketing/mobile/identity/IdentityExtension.java index a19d50706..a67caa4db 100644 --- a/code/android-identity-library/src/main/java/com/adobe/marketing/mobile/identity/IdentityExtension.java +++ b/code/android-identity-library/src/main/java/com/adobe/marketing/mobile/identity/IdentityExtension.java @@ -275,7 +275,9 @@ void forceSyncIdentifiers(@NonNull final Event event) { private void boot() { loadVariablesFromPersistentData(); initializeDatabaseWithCurrentPrivacyStatus(); - getApi().createSharedState(packageEventData(), null); + if(!StringUtils.isNullOrEmpty(mid)){ + getApi().createSharedState(packageEventData(), null); + } } /**