diff --git a/Parse/src/main/java/com/parse/Parse.java b/Parse/src/main/java/com/parse/Parse.java index a66b98e0c..9b8a666dc 100644 --- a/Parse/src/main/java/com/parse/Parse.java +++ b/Parse/src/main/java/com/parse/Parse.java @@ -34,6 +34,8 @@ * library. */ public class Parse { + private static final String TAG = "com.parse.Parse"; + /** * Represents an opaque configuration for the {@code Parse} SDK configuration. */ @@ -359,6 +361,10 @@ public static void initialize(Context context, String applicationId, String clie } public static void initialize(Configuration configuration) { + if (isInitialized()) { + PLog.w(TAG, "Parse is already initialized"); + return; + } // NOTE (richardross): We will need this here, as ParsePlugins uses the return value of // isLocalDataStoreEnabled() to perform additional behavior. isLocalDatastoreEnabled = configuration.localDataStoreEnabled;