diff options
author | Lluis Sanchez Gual <lluis@novell.com> | 2011-08-04 15:14:25 +0400 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@novell.com> | 2011-08-04 15:15:01 +0400 |
commit | 61086b1e4fbbb9799dcdd8c8bef09e194126f3c0 (patch) | |
tree | 8cfe7f6d2cbb2f842a014c53f174d10ba2fa4101 /main/src/core | |
parent | 4e323677ef24a6f758bb1ef675e38eccc3c910e1 (diff) |
Fix NRE in CommandManager
Diffstat (limited to 'main/src/core')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs index 75d7b17f72..4671b26b2e 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs @@ -1090,7 +1090,7 @@ namespace MonoDevelop.Components.Commands lastFocused = newFocused; UpdateAppFocusStatus (hasFocus, lastFocusedExists); - if (win.IsRealized) { + if (win != null && win.IsRealized) { RegisterTopWindow (win); return win; } |