Crash when load native ads

mopub
ios

#1

Hi!
We are using native ads in our iOS application. The ads should be in every ten sections of the tableView.
They are configured from server. The configuration of “Start ads at position(s)” is: "2.0, 12.0, 22.0, 32.0, 42.0, 52.0, 62.0, 72.0, 82.0, 92.0, 102.0, 112.0, 122.0, 132.0, 142.0, 152.0, 162.0, 172.0, 182.0, 192.0, 202.0"
We see many crashes in MPTableViewAdPlacer.m on line 114.
https://fabric.io/sportsru/ios/apps/com.tribuna.rabona/issues/56bc4e4bf5d3a7f76bbde4c1

Also, I found this fork on GitHub, which seems fix this issue: https://github.com/justadreamer/mopub-ios-sdk/commit/1d5994507fbb31083d45001f0ab2c948b8fde3e9

Why you don’t want to add this check to - (void)adPlacer:(MPStreamAdPlacer *)adPlacer didLoadAdAtIndexPath:(NSIndexPath *)indexPath method?