This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
Bug 51652 - Toggling the Header/Footer on a ListView Throws an NRE
Summary: Toggling the Header/Footer on a ListView Throws an NRE
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS (show other bugs)
Version: 2.3.4
Hardware: PC Windows
: Normal major
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-01-19 23:55 UTC by Jimmy Garrido
Modified: 2017-01-23 18:39 UTC (History)
3 users (show)

See Also:
Tags: ac
Is this bug a regression?: ---
Last known good build:

repro project (349.26 KB, application/zip)
2017-01-19 23:55 UTC, Jimmy Garrido

Description Jimmy Garrido 2017-01-19 23:55:21 UTC
Created attachment 19409 [details]
repro project

### Overview
On iOS, adding and removing the header/footer on a ListView will throw an NRE when you try to add it again.

### Steps to reproduce
1. Run the attached iOS project
2. Press the "Toggle Footer" button to add a Footer
3. Press the button again to remove the Footer
4. Press the button again

### Expected Results 
A footer is added to the ListView

### Actual Results
The app crashes with an NRE

### Version info
Reproduced with Forms and 2.3.4-pre1
Comment 1 Jimmy Garrido 2017-01-20 01:02:28 UTC
Submitted PR for fix:
Comment 2 Samantha Houts 2017-01-23 18:39:38 UTC
Should be fixed in 2.3.5-pre1. Thank you!

Note You need to log in before you can comment on or make changes to this bug.