0006541: Gramps crashes during import gedcom. Ignore empty ALIA alias name.

svn: r22297
This commit is contained in:
Tim G L Lyons 2013-05-14 15:42:28 +00:00
parent a6e318a53a
commit 45a5a85963

View File

@ -3572,7 +3572,10 @@ class GedcomParser(UpdateCallback):
@param state: The current state
@type state: CurrentState
"""
if line.data[0] == '@':
if line.data == '':
self.__add_msg(_("Empty Alias <NAME PERSONAL> ignored"), line, state)
self.__skip_subordinate_levels(state.level+1, state)
elif line.data[0] == '@':
handle = self.__find_person_handle(self.pid_map[line.data])
ref = PersonRef()
ref.ref = handle