Bug #63702 Object reference not set to an instance of an object
Submitted: 9 Dec 2011 18:59 Modified: 11 Jan 2012 17:52
Reporter: Eric Kent Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S3 (Non-critical)
Version:5.2.36 CE Rev 8542 OS:Windows (Windows 7)
Assigned to: CPU Architecture:Any

[9 Dec 2011 18:59] Eric Kent
Description:
I was moving a table in a diagram and I got this error

Exception = System.NullReferenceException
Message = Object reference not set to an instance of an object.
FullText = System.NullReferenceException: Object reference not set to an instance of an object.
   at MySQL.GUI.Workbench.Plugins.PhysicalLayerEditor.RefreshFormData()
   at MySQL.GUI.Workbench.Plugins.ObjectEditorPlugin.CallRefreshFormData()
   at MySQL.GUI.Workbench.Plugins.ObjectEditorPlugin.RefreshFormDataInvoke()
   at MySQL.Grt.RunWrappedDelegate0<void\,void\,MySQL::Grt::DelegateSlot0<void\,void>::ManagedDelegate>.native_callback()
   at boost.detail.function.void_function_invoker0<void (__cdecl*)(void),void>.invoke(function_buffer* function_ptr)
   at wb.ModelDiagramForm.handle_mouse_button(ModelDiagramForm* , MouseButton , Boolean , Int32 , Int32 , EventState )
   at MySQL.Workbench.ModelDiagramFormWrapper.OnMouseUp(MouseEventArgs e, Int32 X, Int32 Y, Keys keystate, MouseButtons buttons)
   at MySQL.GUI.Workbench.ModelDiagramForm.CanvasPanel_MouseUp(Object sender, MouseEventArgs e)
   at System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e)
   at MySQL.Utilities.WindowsCanvasViewerPanel.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(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)

How to repeat:
Don't know how, but I get this error frequently.  The workbench crashed 40 times in 6 weeks.  Recently upgraded to 5.2.36, but that hasn't helped.
[9 Dec 2011 19:08] Eric Kent
After I restarted the workbench, the table that I had been moving no longer appeared in the diagram.  It was still in the schema.  I tried adding it to the diagram again, and I got a message saying that it was already there.  I double checked and it did not appear anywhere.  I thought it might have been moved behind another table, so to make enough room to move other tables around, I increased the size of the diagram, adding an additional two rows.  When I did, the table appeared on the bottom of the diagram, two rows below where it was originally.
[10 Dec 2011 14:28] Eric Kent
The error reoccurred when I was simply scrolling down in the diagram.  I had just created a new table from the diagram, then closed the table detail pane.  I then scrolled down one click in the diagram, and I got the error.

Exception = System.NullReferenceException
Message = Object reference not set to an instance of an object.
FullText = System.NullReferenceException: Object reference not set to an instance of an object.
   at MySQL.GUI.Workbench.Plugins.DbMysqlTableEditor.nameTextBox_TextChanged(Object sender, EventArgs e)
   at MySQL.Utilities.MySQLAdvTextBox.changeTimer_Tick(Object sender, EventArgs e)
   at MySQL.Utilities.MySQLAdvTextBox.CheckTextChangedNow()
   at MySQL.GUI.Workbench.Plugins.DbMysqlTableEditor.nameTextBox_Leave(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnLeave(EventArgs e)
   at System.Windows.Forms.Control.NotifyLeave()
   at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
[11 Dec 2011 17:52] MySQL Verification Team
I was not able to repeat with sakila sample model, could you please provide your model so we can try with it?. Thanks.
[12 Jan 2012 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".