Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

13326239: UICollectionView crashes in -performBatchUpdates: when header view is nil #5225

Open
openradar-mirror opened this issue Aug 13, 2015 · 0 comments

Comments

@openradar-mirror
Copy link

Description

Summary:
UICollectionView crashes in -performBatchUpdates: when header view is nil

Steps to Reproduce:

  1. Run the attached project in the simulator

Or

  1. Set a header size in UICollectionView, but don't provide a supplementary view
  2. Invoke -performBatchUpdates with an empty block

Expected Results:
Leaves space for a header view without actually drawing it. This is identical to what would happen if you don't call -performBatchUpdates.

Actual Results:
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* setObjectForKey: object cannot be nil (key: <_UICollectionViewItemKey: 0x109440b0> Type = SV Kind = UICollectionElementKindSectionHeader IndexPath = <NSIndexPath 0x10944080> 2 indexes [0, 0])'

Regression:
The results occur on iOS 6.1.

Notes:
In ViewController.m, set WANT_CRASH to 0 to skip the call to -performBatchUpdates:, which prevents the crash.

Product Version: 6.1
Created: 2013-03-01T19:34:44.648782
Originated: 2013-03-01T00:00:00
Open Radar Link: http://www.openradar.me/13326239

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant