First use - no connection strings defined - 'Query' menu causes an error


Program behaves a bit funky on first use, when no connection strings are defined... or at least none of the default ones are valid on this pc.
For example, clicking on the 'Query' menu on first use returns an error:
Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at MiniSqlQuery.ApplicationSettings.get_ProviderFactory()
at MiniSqlQuery.ApplicationSettings.get_Connection()
at MiniSqlQuery.Core.Commands.CloseDatabaseConnectionCommand.get_Enabled()
at MiniSqlQuery.Core.CommandControlBuilder.TopLevelMenuDropDownOpening(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripDropDownItem.OnDropDownShow(EventArgs e)
at System.Windows.Forms.ToolStripDropDownItem.ShowDropDownInternal()
at System.Windows.Forms.ToolStripDropDownItem.ShowDropDown(Boolean mousePush)
at System.Windows.Forms.ToolStripItem.HandleMouseDown(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseDown(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.MenuStrip.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Not quite clear what on the 'Query' menu is dynamic, but it would be preferred to either have the menu, with any subitems disabled ('grayed out') or even 'gray out' the entire menu when a connection string isn't selected
Closed Jun 30, 2014 at 10:02 PM by paulkohler
Fixed in a recent update


paulkohler wrote Jul 11, 2012 at 3:25 AM

Found a similar issue with a few other components. Provided some feedback to user for selecting connections etc (68540).