From b63842ab15618c446d59df0a4d65cd3851df78e5 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Fri, 7 Aug 2020 01:50:19 -0400 Subject: [PATCH] throw InvalidDataFormatException if the file 'IND.DB' is not found in the OLE compound document file --- .../DataFormats/FamilyTreeMaker/Windows/FTWDataFormat.cs | 3 +++ 1 file changed, 3 insertions(+) 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;