From 7232f0e0ea1f4209270a7e3baf8f3ace0061ec53 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 8 Sep 2006 18:23:16 +0200 Subject: [PATCH] Check there is actually a current activity before getting his id --- shell/frame/RightPanel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/frame/RightPanel.py b/shell/frame/RightPanel.py index 5280a8fa..818e8c8b 100644 --- a/shell/frame/RightPanel.py +++ b/shell/frame/RightPanel.py @@ -47,7 +47,7 @@ class RightPanel(GridGroup): def __activity_appeared_cb(self, pservice, activity_ps): activity = self._shell.get_current_activity() - if activity_ps.get_id() == activity.get_id(): + if activity and activity_ps.get_id() == activity.get_id(): self._set_activity_ps(activity_ps) def _set_activity_ps(self, activity_ps):