diff --git a/sugar/datastore/datastore.py b/sugar/datastore/datastore.py index 0be6a2fa..d4340feb 100644 --- a/sugar/datastore/datastore.py +++ b/sugar/datastore/datastore.py @@ -138,6 +138,8 @@ class DSObject(object): activityfactory.create(bundle.get_service_name()) else: + if not self.get_activities(): + return if service_name is None: service_name = self.get_activities()[0].service_name