|
|
@@ -87,6 +87,13 @@
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ if (payload.experimentId == nil) {
|
|
|
+ // When doing experiment test on devices, the payload could be empty. Returning here to prevent
|
|
|
+ // app crash.
|
|
|
+ FIRLogInfo(kFIRLoggerABTesting, @"I-ABT000020", @"Experiment Id in payload is empty.");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
if (maxNumOfExperiments <= experiments.count) {
|
|
|
ABTExperimentPayloadExperimentOverflowPolicy overflowPolicy =
|
|
|
[self overflowPolicyWithPayload:payload originalPolicy:policy];
|