Forum Xamarin.Forms

Listview.FooterTemplate cause NullReferenceException bug

XavyerXavyer MDMember ✭✭
edited March 2015 in Xamarin.Forms
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns=""

  <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?


  • CraigDunnCraigDunn USXamarin Team Xamurai

    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.

  • EricWeinschenkEricWeinschenk USMember

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

  • XavyerXavyer MDMember ✭✭

    1.4.2 Pre1 - bug still there

  • XavyerXavyer MDMember ✭✭

    1.4.2 Pre2 - bug still there

  • tomnuentomnuen VNMember ✭✭

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

  • XavyerXavyer MDMember ✭✭

    1.4.3 Pre1 - fixed FooterTemplate , but broken GroupHeaderTemplate

Sign In or Register to comment.