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 committed by Doug Blank
parent 4413c7c88b
commit f92c35d797

View File

@ -4344,6 +4344,8 @@ class GedcomParser(UpdateCallback):
attr.set_type(AttributeType.NICKNAME) attr.set_type(AttributeType.NICKNAME)
attr.set_value(line.data) attr.set_value(line.data)
state.person.add_attribute(attr) state.person.add_attribute(attr)
elif name_len == 0:
return
else: else:
name = Name() name = Name()
surname = Surname() surname = Surname()