UITableView crashes in some situations with UITableViewAutomaticDimension

Originator:muccymac
Number:rdar://26812012 Date Originated:15-Jun-2016
Status:Open Resolved:
Product:iOS SDK Product Version:9.3
Classification: Reproducible:Always
 
Hi,
I see a bunch of crashes of table views crashing with this exception: "Table view exception: NSInvalidArgumentException ('*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil')". I searched the web a little bit and I found it's caused by UITableViewAutomaticDimension.
I finally reproduced the bug for a lucky coincidence using UITableViewAutomaticDimension with section headers.

Steps to Reproduce:
1. Open attached project
2. Run
3. Scroll
4. Tap "Load more"

Expected Results:
It should attach new sections

Actual Results:
It crashes

Version:
iOS 9.3

Notes:
If you disable UITableViewAutomaticDimension it works.

Configuration:
iPhone Simulator

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!