From b77089e97fda4b6f0dd95cc23400197366e5e5af Mon Sep 17 00:00:00 2001 From: prculley Date: Mon, 2 May 2016 11:46:04 -0500 Subject: [PATCH] Bug 7949, crash on GEDCOM import with empty _AKA lines --- gramps/plugins/lib/libgedcom.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/plugins/lib/libgedcom.py b/gramps/plugins/lib/libgedcom.py index f1bec4f61..6b956c83e 100755 --- a/gramps/plugins/lib/libgedcom.py +++ b/gramps/plugins/lib/libgedcom.py @@ -4347,6 +4347,8 @@ class GedcomParser(UpdateCallback): attr.set_type(AttributeType.NICKNAME) attr.set_value(line.data) state.person.add_attribute(attr) + elif name_len == 0: + return else: name = Name() surname = Surname()