Skip to content

Commit

Permalink
Fix null check in Adapter setter (MvvmCross#1733)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjeremy authored and Cheesebaron committed Apr 26, 2017
1 parent 83f966b commit 851dd9b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -112,7 +112,7 @@ public new IMvxRecyclerAdapter Adapter
var existingHeaderFooterAdapter = existing as IMvxHeaderFooterRecyclerViewAdapter;
var newHeaderFooterAdapter = value as IMvxHeaderFooterRecyclerViewAdapter;

if (existingGroupableAdapter != null && newHeaderFooterAdapter != null)
if (existingHeaderFooterAdapter != null && newHeaderFooterAdapter != null)
{
newHeaderFooterAdapter.FooterClickCommand = existingHeaderFooterAdapter.FooterClickCommand;
newHeaderFooterAdapter.HeaderClickCommand = existingHeaderFooterAdapter.HeaderClickCommand;
Expand Down

0 comments on commit 851dd9b

Please sign in to comment.