Exception when saving ERD (#215)

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

at SoftwareIdeasModeler.Core.DiagramItems.ErdItems.ErdEntityAttribute.Save(XmlTextWriter xw)

at SoftwareIdeasModeler.Core.DiagramItems.ErdItems.ErdEntity.SaveDetail(XmlTextWriter xw)

at SoftwareIdeasModeler.Core.Projecting.ModelElement.Save(XmlTextWriter xw)

at SoftwareIdeasModeler.Core.Projecting.Diagram.SaveAbstractItems(XmlTextWriter writer)

at SoftwareIdeasModeler.Core.Projecting.Diagram.Save(SimXmlWriter sxw)

at SoftwareIdeasModeler.Core.Projecting.Model.Save(SimXmlWriter sxw)

at SoftwareIdeasModeler.ProjectXml.SimXmlWriter.SaveModels(Project project)

at SoftwareIdeasModeler.ProjectXml.SimXmlWriter.SaveProject(Project project)

at SoftwareIdeasModeler.ProjectXml.SimXmlWriter.Save(String fileName)

at SoftwareIdeasModeler.MainForm.SaveToFile(String filename, Boolean isMultiFile)

at SoftwareIdeasModeler.MainForm.SaveFile()

...

Created
24 April 2013 16:15:52
Closed
25 April 2013 1:40:04
Requested by
WP
State
Solved
Version
6.01.4845.43166
OperatingSystem
Windows 7
Solved in
6.11

WP 24 April 2013 16:20:54

To reproduce, create a new project and add an Entity Relationship Diagram. Create an Entity and add an Attribute to it, then save the file.

(Saving works fine before adding an Attribute, but fails afterwards)

Dusan Rodina - softwareideas.net 24 April 2013 16:32:28

Thank you for your notice. I will release the fix very soon.

(I will also check the unit tests, this case should be covered by them, but nevertheless they passed.)

TrackedRequestComment
Your Name:
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]