The activity icon does not handle the case of a activity without metadata.

If the activity is initiated with create_object=False

Acked-by: Sascha Silbe <silbe@activitycentral.com>
This commit is contained in:
Gonzalo Odiard 2011-03-31 20:21:19 +00:00 committed by Sascha Silbe
parent 17e52db2b6
commit 35cb4e3881

View File

@ -34,7 +34,7 @@ _ = lambda msg: gettext.dgettext('sugar-toolkit', msg)
def _create_activity_icon(metadata):
if metadata.get('icon-color', ''):
if metadata is not None and metadata.get('icon-color'):
color = XoColor(metadata['icon-color'])
else:
client = gconf.client_get_default()