The error is coming from your StandingsTableViewController tableView:cellForRowAtIndexPath:
method. Your data is giving you an NSNull instance where you expect an NSDictionary
.
Since you explicitly add the NSNull
object you need to update your cellForRow...
method to check to see if the object is an NSNull
instance before assuming it is an NSDictionary
.
Something like this:
NSDictionary *data = self.tableData[someIndex];
if ([data isKindOfClass:[NSDictionary class]]) {
// process the data as usual
} else {
// This is probably the NSNull object, ignore it or handle appropriately
}