Author: remi
Date: 2009-07-03 13:48:33 +0200 (Fri, 03 Jul 2009)
New Revision: 5030

Modified:
   
software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
Log:
* Fixed bug when a gadget configuration is applied while an alert

Modified: 
software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
===================================================================
--- 
software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
      2009-07-03 11:45:49 UTC (rev 5029)
+++ 
software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
      2009-07-03 11:48:33 UTC (rev 5030)
@@ -76,8 +76,11 @@
     def getPluginCommand(self):
         """
         """
-        return self.__pguObject.getCommand(
-            self.__pluginInterpreterContext.getInstanceCommandName())
+        if self.__pguObject != None:
+            return self.__pguObject.getCommand(
+                self.__pluginInterpreterContext.getInstanceCommandName())
+        else:
+            return None
 
     def setContextIsComplete(self):
         """
@@ -646,6 +649,9 @@
         """
         """
         self.__ugcInsertionMutex.acquire()
+        if pguContext.getPguObject() == None:
+            self.__ugcInsertionMutex.release()
+            return
         # Alerts and no daemon user calls must be inserted in the stack
         # as foreground.
         if (pguContext.getContextLayer() == PGU_CONTEXT_LAYER_SCHEDULER) or\


------------------------------------------------------------------------------
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to