Don't attempt to set a name of it isn't intialized

svn: r165
This commit is contained in:
Don Allingham 2001-06-19 22:37:25 +00:00
parent 8592a66179
commit 7e6977d8cd

View File

@ -606,7 +606,8 @@ class GrampsParser(handler.ContentHandler):
#
#---------------------------------------------------------------------
def stop_last(self,tag):
self.name.Surname = u2l(tag)
if self.name:
self.name.Surname = u2l(tag)
#---------------------------------------------------------------------
#
@ -614,7 +615,8 @@ class GrampsParser(handler.ContentHandler):
#
#---------------------------------------------------------------------
def stop_suffix(self,tag):
self.name.Suffix = u2l(tag)
if self.name:
self.name.Suffix = u2l(tag)
#---------------------------------------------------------------------
#
@ -622,7 +624,8 @@ class GrampsParser(handler.ContentHandler):
#
#---------------------------------------------------------------------
def stop_title(self,tag):
self.name.Title = u2l(tag)
if self.name:
self.name.Title = u2l(tag)
#---------------------------------------------------------------------
#
@ -630,7 +633,8 @@ class GrampsParser(handler.ContentHandler):
#
#---------------------------------------------------------------------
def stop_nick(self,tag):
self.person.setNickName(u2l(tag))
if self.name:
self.person.setNickName(u2l(tag))
#---------------------------------------------------------------------
#