Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,13 @@ public static void initialize(
@Nullable final AdobeCallback<?> completionCallback) {
if (application == null) {
Log.error(CoreConstants.LOG_TAG, LOG_TAG, "initialize failed - application is null.");
completionCallback.call(null);
return;
}

if (initOptions == null) {
Log.error(CoreConstants.LOG_TAG, LOG_TAG, "initialize failed - initOptions is null.");
completionCallback.call(null);
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ internal class MobileCoreInitializer(
completionCallback: AdobeCallback<*>?
) {
if (initializeCalled.getAndSet(true)) {
completionCallback?.call(null)
Log.debug(CoreConstants.LOG_TAG, LOG_TAG, "initialize failed - ignoring as it was already called.")
return
}
Expand Down Expand Up @@ -186,6 +187,7 @@ internal class MobileCoreInitializer(
LOG_TAG,
"Failed to registerExtensions - setApplication not called"
)
completionCallback?.call(null)
return
}

Expand Down
Loading