Listview.FooterTemplate cause NullReferenceException bug RRS feed

  • Question

  • User77086 posted
    <?xml version="1.0" encoding="utf-8" ?>
    <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
      <ListView  Footer = "Footer" Header = "Header">
        <ListView.FooterTemplate >
              <Label Text="Test"/>

    If i start a project with this main page i get NullReferenceException at Xamarin.Forms.Platform.iOS.ListViewRenderer.OnFooterMeasureInvalidated according to call stack.

    If i change FooterTemplate to HeaderTemplate the project starts and i can see empty list with a "Test" header. If i leave FooterTemplate but remove StackLayout leaving only Label the project starts and i can see empty list with a "Test" footer.

    This happend both in 1.4.0 and 1.4.1 Pre2

    As HeaderTemplate works fine I suspect it's a bug. Anyone know a way around this?

    Saturday, March 21, 2015 7:49 PM

All replies

  • User14 posted

    Hey @Xavyer, I found the same problem and have already raised it as a bug. No workaround that I know of, until it is fixed.

    Wednesday, March 25, 2015 3:23 AM
  • User83742 posted

    Hey, i'm seeing this same behavior. Any updates?

    Monday, March 30, 2015 6:12 PM
  • User77086 posted

    1.4.2 Pre1 - bug still there

    Tuesday, March 31, 2015 9:35 AM
  • User77086 posted

    1.4.2 Pre2 - bug still there

    Wednesday, April 1, 2015 3:45 PM
  • User28517 posted

    1.4.2 Stable - bug still there!!! -> not stable.

    Wednesday, April 22, 2015 4:19 AM
  • User77086 posted

    1.4.3 Pre1 - fixed FooterTemplate , but broken GroupHeaderTemplate

    Wednesday, April 22, 2015 11:04 AM