From ecd7637d2710420bedaf474c2833d040f3e61c66 Mon Sep 17 00:00:00 2001 From: Tim G L Lyons Date: Tue, 14 May 2013 15:42:08 +0000 Subject: [PATCH] 0006541: Gramps crashes during import gedcom. Ignore empty ALIA alias name. svn: r22296 --- src/plugins/lib/libgedcom.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/lib/libgedcom.py b/src/plugins/lib/libgedcom.py index 6272a89fc..9f1600d0e 100644 --- a/src/plugins/lib/libgedcom.py +++ b/src/plugins/lib/libgedcom.py @@ -3518,7 +3518,10 @@ class GedcomParser(UpdateCallback): @param state: The current state @type state: CurrentState """ - if line.data[0] == '@': + if line.data == '': + self.__add_msg(_("Empty Alias 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 = gen.lib.PersonRef() ref.ref = handle