Skip to content

Commit 3df15ba

Browse files
authored
Fix mutating array during iteration crash (#11669)
1 parent 6a0c4f5 commit 3df15ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FirebaseABTesting/Sources/FIRExperimentController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
// Check if the experiment is in experiments but not payloads.
9393
for (id experiment in [experiments copy]) {
9494
BOOL doesExperimentNoLongerExist = YES;
95-
for (NSData *payload in payloads) {
95+
for (NSData *payload in [payloads copy]) {
9696
ABTExperimentPayload *experimentPayload = ABTDeserializeExperimentPayload(payload);
9797
if (!experimentPayload) {
9898
FIRLogInfo(kFIRLoggerABTesting, @"I-ABT000002",

0 commit comments

Comments
 (0)