Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Medrano <josmed@microsoft.com>2022-04-06 17:53:56 +0300
committerJose Medrano <josmed@microsoft.com>2022-04-06 17:53:56 +0300
commit0ee962345da04614d27e63601b9372c11f633681 (patch)
tree898082e0b279d273b258ee1cf0958c852694d208
parent68bb09f96c2c87b18a5b7100134b64caae7e9c26 (diff)
[WindowFrame] Fixes NRE if transient value is null
-rw-r--r--Xwt/Xwt/WindowFrame.cs2
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);
}
}