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

svn: r22296
This commit is contained in:
Tim G L Lyons
2013-05-14 15:42:08 +00:00
parent 7effc7980b
commit ecd7637d27

View File

@ -3518,7 +3518,10 @@ class GedcomParser(UpdateCallback):
@param state: The current state @param state: The current state
@type state: CurrentState @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]) handle = self.__find_person_handle(self.pid_map[line.data])
ref = gen.lib.PersonRef() ref = gen.lib.PersonRef()
ref.ref = handle ref.ref = handle