* ToolStripManager.cs: Guard against an NRE I ran into.
svn path=/trunk/mcs/; revision=90539
+2007-12-02 Jonathan Pobst <monkey@jpobst.com>
+
+ * ToolStripManager.cs: Guard against an NRE I ran into.
+
2007-12-02 Jonathan Pobst <monkey@jpobst.com>
* LinkLabel.cs: Apply patch from George to fix bug 344012. If
// Get the parent form of this message
Form f = (Form)Control.FromHandle (m.HWnd).TopLevelControl;
+ // If there isn't a Form with this, there isn't much we can do
+ if (f == null)
+ return false;
+
// Check the MainMenuStrip property first
if (f.MainMenuStrip != null)
if (f.MainMenuStrip.OnMenuKey ())