Kaydet (Commit) 7a9abd68 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#982756 Dereference null return value

Change-Id: I0f2ef4cb61a5774c3d2251897ee914f959ae44a8
üst c3e8faa1
......@@ -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() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment