Skip to content

Commit

Permalink
Fix NRE in SetParent (#14384)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkatz6 authored Jan 29, 2024
1 parent fc7339c commit 200f037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Avalonia.Native/WindowImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public override IPopupImpl CreatePopup() =>

public void SetParent(IWindowImpl parent)
{
_native.SetParent(((WindowImpl)parent).Native);
_native.SetParent(((WindowImpl)parent)?.Native);
}

public void SetEnabled(bool enable)
Expand Down

0 comments on commit 200f037

Please sign in to comment.