Reply To: NullReferenceException while exporting to UMI

There are dependency relationships in my class diagram and this exception is thrown when I try to export the diagram to UMI:

System.NullReferenceException: Object reference not set to an instance of an object.

at SoftwareIdeasModeler.Core.Exporting.Xmi.XmiExporter21.WriteDependency(XmlTextWriter xw, UmlDependency umlDependency)

at SoftwareIdeasModeler.Core.Exporting.Xmi.XmiExporter21.WriteElement(XmlTextWriter xw, AbstractDiagramItem elem)

at SoftwareIdeasModeler.Core.Exporting.Xmi.XmiExporter21.WriteModel(XmlTextWriter xw, Model model)

at SoftwareIdeasModeler.Core.Exporting.Xmi.XmiExporter21.WriteModels(XmlTextWriter xw, List`1 models)

at SoftwareIdeasModeler.Core.Exporting.Xmi.XmiExporter21.ExportToFile(String filename)

at SoftwareIdeasModeler.MainForm.xmiToolStripMenuItem_Click(Object sender, EventArgs e)

at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)

at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)

at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)

at System.Windows.Forms.Control.WmMouseUp(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.ToolStripDropDown.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)

And while you are at it, would you please swap the place of Export and Import menu items as the current placement is not usual and is quite prone to mis-clicks.

Mehrdad 10 February 2011 12:00:56

New Comment

Comment
You can use these formatting tags: [b]bold[/b] [i]italic[/i] [u]underline[/u] [url]www.example.com[/url] [code]some code[/code] [quote]quoted text[/quote] [list]one list item per line[/list]