diff options
author | Jose Medrano <josmed@microsoft.com> | 2022-04-06 17:53:56 +0300 |
---|---|---|
committer | Jose Medrano <josmed@microsoft.com> | 2022-04-06 17:53:56 +0300 |
commit | 0ee962345da04614d27e63601b9372c11f633681 (patch) | |
tree | 898082e0b279d273b258ee1cf0958c852694d208 | |
parent | 68bb09f96c2c87b18a5b7100134b64caae7e9c26 (diff) |
[WindowFrame] Fixes NRE if transient value is null
-rw-r--r-- | Xwt/Xwt/WindowFrame.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xwt/Xwt/WindowFrame.cs b/Xwt/Xwt/WindowFrame.cs index 890b9dc4..788fa589 100644 --- a/Xwt/Xwt/WindowFrame.cs +++ b/Xwt/Xwt/WindowFrame.cs @@ -260,7 +260,7 @@ namespace Xwt get { return transientFor; } set { transientFor = value; - Backend.SetTransientFor ((IWindowFrameBackend)(value as IFrontend).Backend); + Backend.SetTransientFor ((IWindowFrameBackend)(value as IFrontend)?.Backend); } } |