diff options
Diffstat (limited to 'pyuno/source/module/pyuno_callable.cxx')
-rw-r--r-- | pyuno/source/module/pyuno_callable.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pyuno/source/module/pyuno_callable.cxx b/pyuno/source/module/pyuno_callable.cxx index c1451683f17f..2bd2a7da2fa8 100644 --- a/pyuno/source/module/pyuno_callable.cxx +++ b/pyuno/source/module/pyuno_callable.cxx @@ -256,6 +256,8 @@ PyRef PyUNO_callable_new ( { PyUNO_callable* self; + OSL_ENSURE (my_inv.is(), "XInvocation must be valid"); + self = PyObject_New (PyUNO_callable, &PyUNO_callable_Type); if (self == NULL) return NULL; //NULL == Error! |