-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
BugSomething isn't workingSomething isn't working
Description
We are seeing a crash in Crashlytics that looks like this:
The code in question is here:
- (TKBLOfferTarget*)offerTargetFor:(WKWebView*) webView {
if (!_offerTargets) {
_offerTargets = [NSMutableArray new];
}
for (TKBLOfferTarget* target in _offerTargets) {
if (![target isUsed])
[_offerTargets removeObject:target];
}
TKBLOfferTarget* target = [[TKBLOfferTarget alloc] initWithWebView:webView];
[_offerTargets addObject:target];
return target;
}
and it does indeed look like if [target isUsed] returns NO, then we will mutate the _offerTargets array while we are iterating it.
Metadata
Metadata
Assignees
Labels
BugSomething isn't workingSomething isn't working
