From dff65e6e915c5651a8bf174c14aad746ed492f5e Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 13 May 2016 13:03:01 -0400 Subject: [PATCH] 9438: AttributeError: 'NoneType' object has no attribute 'db' --- gramps/gui/displaystate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gui/displaystate.py b/gramps/gui/displaystate.py index 3d20a19fb..432061bb6 100644 --- a/gramps/gui/displaystate.py +++ b/gramps/gui/displaystate.py @@ -565,7 +565,7 @@ class DisplayState(Callback): def modify_statusbar(self, dbstate, active=None): view = self.viewmanager.active_page - if not isinstance(view, NavigationView): + if not isinstance(view, NavigationView) or dbstate is None: return nav_type = view.navigation_type()