diff --git a/Plugins/UniversalEditor.Plugins.Genealogy/DataFormats/FamilyTreeMaker/Windows/FTWDataFormat.cs b/Plugins/UniversalEditor.Plugins.Genealogy/DataFormats/FamilyTreeMaker/Windows/FTWDataFormat.cs index 282d659e..cf200a08 100644 --- a/Plugins/UniversalEditor.Plugins.Genealogy/DataFormats/FamilyTreeMaker/Windows/FTWDataFormat.cs +++ b/Plugins/UniversalEditor.Plugins.Genealogy/DataFormats/FamilyTreeMaker/Windows/FTWDataFormat.cs @@ -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(new INDDBDataFormat()); int maxNameLength = 0;