throw InvalidDataFormatException if the file 'IND.DB' is not found in the OLE compound document file

This commit is contained in:
Michael Becker 2020-08-07 01:50:19 -04:00
parent 3e795dbac7
commit b63842ab15
No known key found for this signature in database
GPG Key ID: 506F54899E2BFED7

View File

@ -22,6 +22,9 @@ namespace UniversalEditor.Plugins.Genealogy.DataFormats.FamilyTreeMaker.Windows
File IND_DB = fsom.Files["IND.DB"];
File INDGROUPS = fsom.Files["QEDIT0.DB"];
if (IND_DB == null)
throw new InvalidDataFormatException("IND.DB not found");
INDDBObjectModel objm = IND_DB.GetObjectModel<INDDBObjectModel>(new INDDBDataFormat());
int maxNameLength = 0;