Bug #47958 Error when closing window
Submitted: 9 Oct 2009 20:39 Modified: 23 Oct 2009 10:09
Reporter: Flavio Ota Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.2.4 OSS Alpha (Revision 4030) OS:Windows (Vista Bussines (34 bit))
Assigned to: Mike Lischke CPU Architecture:Any

[9 Oct 2009 20:39] Flavio Ota
Description:
Error when closing Relationship Window on ERR Diagram.

Error message:
System.NullReferenceException: Referência de objeto não definida para uma instância de um objeto.
   em MySQL.GUI.Workbench.MainForm.mainDockPanel_ActiveDocumentClosing(Object sender, ActiveDocumentClosingEventArgs e)
   em WeifenLuo.WinFormsUI.Docking.DockPanel.OnActiveDocumentClosing(ActiveDocumentClosingEventArgs e)
   em WeifenLuo.WinFormsUI.Docking.DockPane.CloseContent(IDockContent content)
   em WeifenLuo.WinFormsUI.Docking.DockPane.CloseActiveContent()
   em WeifenLuo.WinFormsUI.Docking.VS2005DockPaneStrip.Close_Click(Object sender, EventArgs e)
   em System.Windows.Forms.Control.OnClick(EventArgs e)
   em System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   em System.Windows.Forms.Control.WndProc(Message& m)
   em System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   em System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   em System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

How to repeat:
- Create a ERR Diagram
- Create some tables and relationships
- Double click on "relationship line" to open a Relationship window
- Close the relationship window and get the error
[12 Oct 2009 11:40] Mike Lischke
Fixed in 5.2
[19 Oct 2009 12:18] Johannes Taxacher
Bug #48023 has been marked as duplicate of this one
[19 Oct 2009 12:19] Johannes Taxacher
this has been fixed in our repository and will be included in 5.2.5
[23 Oct 2009 10:09] Tony Bedford
An entry was added to the 5.2.5 changelog:

The following exception was generated when closing the Relationship tab for an EER Diagram:

System.NullReferenceException: Referência de objeto não definida para uma instância de
um objeto.
   em MySQL.GUI.Workbench.MainForm.mainDockPanel_ActiveDocumentClosing(Object sender,
ActiveDocumentClosingEventArgs e)
   em
WeifenLuo.WinFormsUI.Docking.DockPanel.OnActiveDocumentClosing(ActiveDocumentClosingEventA
rgs e)
   em WeifenLuo.WinFormsUI.Docking.DockPane.CloseContent(IDockContent content)
   em WeifenLuo.WinFormsUI.Docking.DockPane.CloseActiveContent()
   em WeifenLuo.WinFormsUI.Docking.VS2005DockPaneStrip.Close_Click(Object sender,
EventArgs e)
   em System.Windows.Forms.Control.OnClick(EventArgs e)
   em System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32
clicks)
   em System.Windows.Forms.Control.WndProc(Message& m)
   em System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   em System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   em System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam,
IntPtr lparam)