summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android/CellAdapter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.Android/CellAdapter.cs')
-rw-r--r--Xamarin.Forms.Platform.Android/CellAdapter.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Android/CellAdapter.cs b/Xamarin.Forms.Platform.Android/CellAdapter.cs
index 4c8ac10d..d79df76d 100644
--- a/Xamarin.Forms.Platform.Android/CellAdapter.cs
+++ b/Xamarin.Forms.Platform.Android/CellAdapter.cs
@@ -211,6 +211,9 @@ namespace Xamarin.Forms.Platform.Android
{
Cell cell = GetCellForPosition(position);
+ if (cell == null)
+ return false;
+
if (_actionMode != null || _supportActionMode != null)
{
if (!cell.HasContextActions)