From 04a1da3daf4a0ec2f2532b71271860e0ddbb7bef Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Fri, 11 Dec 2009 05:51:16 +0000 Subject: [PATCH] Fix crash in NavWeb when accessing uninitiailzed variables. svn: r13757 --- src/plugins/webreport/NarrativeWeb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index af0d8780f..6fe56c029 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -1192,6 +1192,8 @@ class BasePage(object): _obj = db.get_family_from_handle( newhandle ) partner1_handle = _obj.get_father_handle() partner2_handle = _obj.get_mother_handle() + partner1 = None + partner2 = None if partner1_handle: partner1 = db.get_person_from_handle(partner1_handle) if partner2_handle: