I have a ViewController that contains a tableView. Since I need to keep the code well covered with tests, I need to write a test for [tableView:cellForRowAtIndexPath]
There are a number of things that could be going wrong here. Some possibilities:
tableView
itself could be nil.tableView:cellForRowAtIndexPath:
method. That used to be necessary if no cells were available for reuse, but these days a properly configured table will instantiate new cells as needed, and IIRC instantiating your own can cause a crash.