From cb32837e9273cf42bc8008ba6c64722f997a28ae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Thu, 20 Sep 2007 14:49:31 +0000
Subject: [PATCH] check kw is not None

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16511 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/patches/WorkflowTool.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/product/ERP5Type/patches/WorkflowTool.py b/product/ERP5Type/patches/WorkflowTool.py
index 56499ad475..2f1af99964 100644
--- a/product/ERP5Type/patches/WorkflowTool.py
+++ b/product/ERP5Type/patches/WorkflowTool.py
@@ -47,7 +47,11 @@ def DCWorkflowDefinition_notifyWorkflowMethod(self, ob, method_id, args=None, kw
         raise Unauthorized(method_id)
     self._changeStateOf(ob, tdef, kw)
     if getattr(ob, 'reindexObject', None) is not None:
-        ob.reindexObject(activate_kw=kw.get('activate_kw', {}))
+        if kw is not None:
+            activate_kw = kw.get('activate_kw', {})
+        else:
+            activate_kw = {}
+        ob.reindexObject(activate_kw=activate_kw)
 
 def DCWorkflowDefinition_notifyBefore(self, ob, action, args=None, kw=None, transition_list=None):
     '''
-- 
2.30.9