Opened 10 years ago

Closed 10 years ago

#4725 closed defect (fixed)

sugar: traceback when self._home_activity is None

Reported by: godiard Owned by:
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: Sugar Version: Unspecified
Severity: Unspecified Keywords:
Cc: Distribution/OS: Unspecified
Bug Status: Unconfirmed


We see this error in the logs:

  File "/usr/lib/python2.7/site-packages/sugar3/graphics/", line 1302, in __enter_notify_event_cb
  File "/usr/lib/python2.7/site-packages/sugar3/graphics/", line 977, in notify_mouse_enter
  File "/usr/lib/python2.7/site-packages/sugar3/graphics/", line 972, in _ensure_palette_exists
    palette = self.parent.create_palette()
  File "/usr/lib/python2.7/site-packages/jarabe/desktop/", line 607, in create_palette
    if self._home_activity.is_journal():

NoneType do not have is_journal() method

Looking at the code in the class CurrentActivityIcon, all the other uses of self._home_activity check if is None before use it.

Change History (1)

comment:1 Changed 10 years ago by Gonzalo Odiard

  • Resolution set to fixed
  • Status changed from new to closed

CurrentActivityIcon need check if _home_activity is None - Fixes #4725

Signed-off-by: Gonzalo Odiard <godiard@…>

Changeset: 8feab25a480427e31ffe7a8ab61a0ab98458f0c1

Note: See TracTickets for help on using tickets.