Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Fix NRE in ListView Command validation (#14580)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuarezruiz committed Sep 7, 2021
1 parent ff1be05 commit f2237d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Xamarin.Forms.Core/ListView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ internal override void OnIsPlatformEnabledChanged()

void OnCommandCanExecuteChanged(object sender, EventArgs eventArgs)
{
RefreshAllowed = RefreshCommand.CanExecute(null);
RefreshAllowed = RefreshCommand != null && RefreshCommand.CanExecute(null);
}

static void OnFooterChanged(BindableObject bindable, object oldValue, object newValue)
Expand Down

0 comments on commit f2237d3

Please sign in to comment.