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()
...
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.)
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)