Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
Fix CircleListView scroll event issue (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
shyunMin authored Sep 14, 2021
1 parent e5e47fc commit 9210d81
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ void OnItemLongPressed(object sender, GenListItemEventArgs args)
void OnScrollAnimationStopped(object sender, EventArgs args)
{
GenListItem item = Control.GetItemByPosition(180, 180, out int pos);
if (item.Data is NListView.ItemContext itemContext && pos == 0)

if (item != null && item.Data is NListView.ItemContext itemContext && pos == 0)
{
var obj = itemContext.Cell.BindingContext;
var index = Element.TemplatedItems.GetGlobalIndexOfItem(obj);
Expand Down

0 comments on commit 9210d81

Please sign in to comment.