If connection is to an external database times out or if disconnected and reconnected, the following error is received when the query is run and right click on the result set to export it to Excel file.
System.NullReferenceException
Object reference not set to an instance of an object.
Stack Trace:
at Quest.Toad.Grid.ToadGridControl.compareSubItem_GetItemData(Object sender, EventArgs e)
at DevExpress.XtraBars.BarCustomContainerItem.OnGetItemData()
at DevExpress.XtraBars.Controls.CustomLinksControl.AddVisibleLinks(BarItemLinkReadOnlyCollection visibleLinks, IList sourceLinks)
at DevExpress.XtraBars.Controls.PopupMenuBarControl.UpdateMenuVisibleLinks()
at DevExpress.XtraBars.Controls.PopupMenuBarControl.UpdateVisibleLinks()
at DevExpress.XtraBars.PopupMenu.CreateSubControl(BarManager manager)
at DevExpress.XtraBars.PopupMenu.ShowPopup(BarManager manager, Point p)
at DevExpress.XtraBars.PopupMenu.ShowPopup(Point p)
at DevExpress.XtraBars.MessageFilter.BarManagerHook.CheckShowPopupMenu(BarManager manager, Control control, Boolean fromKeyboard)
at DevExpress.XtraBars.MessageFilter.BarManagerHook.InternalPreFilterMessage(BarManager manager, Int32 Msg, Control wnd, IntPtr HWnd, IntPtr WParam, IntPtr LParam)
at DevExpress.XtraBars.MessageFilter.BarManagerHook.DevExpress.Utils.Win.Hook.IHookController.InternalPreFilterMessage(Int32 Msg, Control wnd, IntPtr HWnd, IntPtr WParam, IntPtr LParam)