Merge pull request #157 from prculley/bug7949

Bug 7949, crash on GEDCOM import with empty _AKA lines
This commit is contained in:
Doug Blank 2016-05-24 12:14:33 -04:00
commit 9ad824d56e

View File

@ -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()