Skip to content

Commit

Permalink
Fix mutating array during iteration crash (#11669)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielamitay authored Aug 10, 2023
1 parent 6a0c4f5 commit 3df15ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FirebaseABTesting/Sources/FIRExperimentController.m
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
// Check if the experiment is in experiments but not payloads.
for (id experiment in [experiments copy]) {
BOOL doesExperimentNoLongerExist = YES;
for (NSData *payload in payloads) {
for (NSData *payload in [payloads copy]) {
ABTExperimentPayload *experimentPayload = ABTDeserializeExperimentPayload(payload);
if (!experimentPayload) {
FIRLogInfo(kFIRLoggerABTesting, @"I-ABT000002",
Expand Down

0 comments on commit 3df15ba

Please sign in to comment.