From f3b57fda0a2340c3f736c84fa108f100f00ef26b Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Thu, 5 May 2016 07:02:26 -0400 Subject: [PATCH] 9435: Attempting to export and empty BSDDB Family tree fails --- gramps/gui/plug/export/_exportassistant.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gramps/gui/plug/export/_exportassistant.py b/gramps/gui/plug/export/_exportassistant.py index 5e70c1c29..96109fb39 100644 --- a/gramps/gui/plug/export/_exportassistant.py +++ b/gramps/gui/plug/export/_exportassistant.py @@ -125,9 +125,12 @@ class ExportAssistant(Gtk.Assistant, ManagedWindow) : self.callback = self.pulse_progressbar person_handle = self.uistate.get_active('Person') - self.person = self.dbstate.db.get_person_from_handle(person_handle) - if not self.person: - self.person = self.dbstate.db.find_initial_person() + if person_handle: + self.person = self.dbstate.db.get_person_from_handle(person_handle) + if not self.person: + self.person = self.dbstate.db.find_initial_person() + else: + self.person = None pmgr = GuiPluginManager.get_instance() self.__exporters = pmgr.get_export_plugins()