Skip to content

Commit

Permalink
Merge pull request #955 from ermshiperete/bug-xamarin-10537
Browse files Browse the repository at this point in the history
[MWF] Fix crash from null control in ContainerControl (#10537)
  • Loading branch information
alexischr committed Apr 7, 2014
2 parents 3d469b9 + 18d7638 commit 6f677fd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -322,7 +322,7 @@ private Control GetCommonContainer (Control active_control, Control value)

internal void SendControlFocus (Control c)
{
if (c.IsHandleCreated) {
if (c != null && c.IsHandleCreated) {
XplatUI.SetFocus (c.window.Handle);
}
}
Expand Down

0 comments on commit 6f677fd

Please sign in to comment.