diff options
author | Lluis Sanchez Gual <lluis@xamarin.com> | 2016-09-21 17:52:32 +0300 |
---|---|---|
committer | Alan McGovern <alan.mcgovern@gmail.com> | 2017-01-05 21:00:14 +0300 |
commit | 4228e6071832ce2d74e63091e025ad895a418ce8 (patch) | |
tree | 6da0e83738f05585cd0dff26052fa4ca1b14c330 | |
parent | 9ee2853a1f3d3afeb9bd35044ba44433036cddb0 (diff) |
Fix NRE when disposing empty windowcycle8
-rw-r--r-- | Xwt/Xwt/Window.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Xwt/Xwt/Window.cs b/Xwt/Xwt/Window.cs index 5a6b70bb..bb1dbbce 100644 --- a/Xwt/Xwt/Window.cs +++ b/Xwt/Xwt/Window.cs @@ -133,7 +133,8 @@ namespace Xwt protected override void Dispose (bool disposing) { - Content.Dispose (); + if (Content != null) + Content.Dispose (); base.Dispose (disposing); } |