Skip to content

Commit

Permalink
Noticed a crash today when we might not get a valid cell
Browse files Browse the repository at this point in the history
  • Loading branch information
migueldeicaza committed Mar 13, 2011
1 parent 22d899c commit c05636a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions TweetStation/UI/SwipeSupport.cs
Expand Up @@ -100,13 +100,15 @@ public override void TouchesMoved (NSSet touches, UIEvent evt)

if (deltaY < 10 && deltaX > 16){
var menuPath = IndexPathForRowAtPoint (currentPos);
var cell = CellAt (menuPath);

container.OnSwipe (menuPath, cell);
ignoreUntilLift = true;
swipeDetectionDisabled = true;
touchStart = null;
return;
if (menuPath != null){
var cell = CellAt (menuPath);

container.OnSwipe (menuPath, cell);
ignoreUntilLift = true;
swipeDetectionDisabled = true;
touchStart = null;
return;
}
}
}
}
Expand Down

0 comments on commit c05636a

Please sign in to comment.