Crash when import complex .gramps 5.0 current branch backup file

Fixes #10152
This commit is contained in:
Paul Franklin 2017-08-10 11:48:36 -07:00
parent 4657f91116
commit d277b169f1

View File

@ -2515,8 +2515,10 @@ class GrampsParser(UpdateCallback):
date_value = self.name.get_date_object()
elif self.event:
date_value = self.event.get_date_object()
else:
elif self.placeref:
date_value = self.placeref.get_date_object()
else:
date_value = self.place_name.get_date_object()
date_value.set_as_text(attrs['val'])