From ef7e3964a108f52b1a1bcba393922ef0140f2b5f Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Thu, 2 Jul 2015 19:26:29 -0700 Subject: [PATCH] 8670: Crash when trying to create a book --- gramps/gui/plug/report/_bookdialog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/gui/plug/report/_bookdialog.py b/gramps/gui/plug/report/_bookdialog.py index dc466be61..800a378df 100644 --- a/gramps/gui/plug/report/_bookdialog.py +++ b/gramps/gui/plug/report/_bookdialog.py @@ -117,6 +117,8 @@ def _initialize_options(options, dbstate, uistate): if not dbase.get_family_from_gramps_id(value): person_handle = uistate.get_active('Person') person = dbase.get_person_from_handle(person_handle) + if person is None: + continue family_list = person.get_family_handle_list() if family_list: family_handle = family_list[0]