From f92c35d7976ec5aa25e9fac799be58731a15b6f6 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 24 May 2016 12:14:33 -0400 Subject: [PATCH] Merge pull request #157 from prculley/bug7949 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 3856af636..cfdde921d 100755 --- a/gramps/plugins/lib/libgedcom.py +++ b/gramps/plugins/lib/libgedcom.py @@ -4344,6 +4344,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()