diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-07 12:37:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-07 18:00:45 +0100 |
commit | 7a9abd681b7fc5f84e81aded9085feb09743f385 (patch) | |
tree | 4e37e6626b3ec0a8130808aab5c0391c3fddeba7 /pyuno | |
parent | c3e8faa10e90b99601a19b2d46b83deac51d39d5 (diff) |
coverity#982756 Dereference null return value
Change-Id: I0f2ef4cb61a5774c3d2251897ee914f959ae44a8
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/module/pyuno_runtime.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx index 0f16d99e73e4..c6d1629c6717 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -481,7 +481,7 @@ PyRef Runtime::any2PyObject (const Any &a ) const { PyRef excClass = getClass( a.getValueType().getTypeName(), *this ); PyRef value = PyRef( PyUNO_new_UNCHECKED (a, getImpl()->cargo->xInvocation), SAL_NO_ACQUIRE); - PyRef argsTuple( PyTuple_New( 1 ) , SAL_NO_ACQUIRE ); + PyRef argsTuple( PyTuple_New( 1 ) , SAL_NO_ACQUIRE, NOT_NULL ); PyTuple_SetItem( argsTuple.get() , 0 , value.getAcquired() ); PyRef ret( PyObject_CallObject( excClass.get() , argsTuple.get() ), SAL_NO_ACQUIRE ); if( ! ret.is() ) |