Skip to content

Commit

Permalink
Merge pull request #2385 from cwensley/curtis/mac-fix-nre-with-scroll…
Browse files Browse the repository at this point in the history
…able

Mac: Check for null Handler when resetting cursor rects in Scrollable
  • Loading branch information
cwensley authored Feb 1, 2023
2 parents e36acfc + 936e603 commit 5e35ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Eto.Mac/Forms/Controls/ScrollableHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public ScrollableHandler Handler

public override void ResetCursorRects()
{
var cursor = Handler.Cursor;
var cursor = Handler?.Cursor;
if (cursor != null)
AddCursorRect(new CGRect(CGPoint.Empty, Frame.Size), cursor.ControlObject as NSCursor);
}
Expand Down

0 comments on commit 5e35ed3

Please sign in to comment.