From d2ad12a90af2fcb9247af7cf4e449dea381a8283 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Tue, 28 Jul 2009 03:17:44 +0000 Subject: [PATCH] Fix potential crash in book report. svn: r12839 --- src/plugins/BookReport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/BookReport.py b/src/plugins/BookReport.py index 8c7f27a4d..10d20db95 100644 --- a/src/plugins/BookReport.py +++ b/src/plugins/BookReport.py @@ -799,7 +799,8 @@ class BookReportSelector(ManagedWindow.ManagedWindow): menu = item.option_class.menu for optname in opt_dict: menu_option = menu.get_option_by_name(optname) - menu_option.set_value(opt_dict[optname]) + if menu_option: + menu_option.set_value(opt_dict[optname]) _initialize_options(item.option_class, self.dbstate) item.set_style_name(saved_item.get_style_name())