From 8d2e6a82c468b1394177ca78d1230e6a3c52d37d Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Mon, 31 May 2010 15:47:22 +0000 Subject: [PATCH] Protection from null family svn: r15519 --- src/plugins/export/ExportGedcom.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/export/ExportGedcom.py b/src/plugins/export/ExportGedcom.py index beb73e61a..5cda3500b 100644 --- a/src/plugins/export/ExportGedcom.py +++ b/src/plugins/export/ExportGedcom.py @@ -600,6 +600,8 @@ class GedcomWriter(UpdateCallback): for family in [ self.dbase.get_family_from_handle(fh) for fh in person.get_parent_family_handle_list() ]: + if family is None: + continue for child_ref in [ ref for ref in family.get_child_ref_list() if ref.ref == person.handle ]: if child_ref.mrel == gen.lib.ChildRefType.ADOPTED \