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

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez Gual <lluis@novell.com>2011-08-04 15:14:25 +0400
committerLluis Sanchez Gual <lluis@novell.com>2011-08-04 15:15:01 +0400
commit61086b1e4fbbb9799dcdd8c8bef09e194126f3c0 (patch)
tree8cfe7f6d2cbb2f842a014c53f174d10ba2fa4101 /main/src/core
parent4e323677ef24a6f758bb1ef675e38eccc3c910e1 (diff)
Fix NRE in CommandManager
Diffstat (limited to 'main/src/core')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs2
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;
}