IGListKit/Source
Maxime Ollivier 56fa344508 check for a valid section NSInterger in IGListAdapter
Summary:
Issue: Invalidating the layout of a `IGListSectionController` that's been removed from the map crashes, because we're passing `NSNotFound` to `[UICollectionView numberOfItemsInSection:...]`. This can easily happen if the section-controller invalidates its layout in a `performBatchAnimated` completion block, but the associated object was deleted during the update or after a full reload.

Fix: Like the rest of `IGListAdapter`, lets check for a valid `NSInteger` and bail early if we don't have it.

Reviewed By: mariajayne

Differential Revision: D22588010

fbshipit-source-id: bf0c26f313795bb10682ef6b660d6ea8a7ce9f1e
2020-07-17 08:45:24 -07:00
..
IGListDiffKit test skipping layout before performing updates 2020-06-26 10:07:14 -07:00
IGListKit check for a valid section NSInterger in IGListAdapter 2020-07-17 08:45:24 -07:00
IGListSwiftKit remove non-existing parameters from docblock (#1412) 2019-12-20 10:59:06 -08:00
Info.plist Refine dequeueReusableCellOfClass methods for Swift (#1388) 2019-12-19 08:13:22 -08:00