Kaydet (Commit) 9fbcf18e authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#982751 Dereference null return value

Change-Id: I070317e55cf3260d1d50def0894a507cd08cc43f
üst f556b1b6
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
using pyuno::PyRef; using pyuno::PyRef;
using pyuno::NOT_NULL;
using pyuno::Runtime; using pyuno::Runtime;
using pyuno::PyThreadAttach; using pyuno::PyThreadAttach;
...@@ -241,7 +242,7 @@ Reference< XInterface > CreateInstance( const Reference< XComponentContext > & c ...@@ -241,7 +242,7 @@ Reference< XInterface > CreateInstance( const Reference< XComponentContext > & c
com::sun::star::uno::makeAny( ctx ) ); com::sun::star::uno::makeAny( ctx ) );
PyRef clazz = getObjectFromLoaderModule( "Loader" ); PyRef clazz = getObjectFromLoaderModule( "Loader" );
PyRef args ( PyTuple_New( 1 ), SAL_NO_ACQUIRE ); PyRef args ( PyTuple_New( 1 ), SAL_NO_ACQUIRE, NOT_NULL );
PyTuple_SetItem( args.get(), 0 , pyCtx.getAcquired() ); PyTuple_SetItem( args.get(), 0 , pyCtx.getAcquired() );
PyRef pyInstance( PyObject_CallObject( clazz.get() , args.get() ), SAL_NO_ACQUIRE ); PyRef pyInstance( PyObject_CallObject( clazz.get() , args.get() ), SAL_NO_ACQUIRE );
runtime.pyObject2Any( pyInstance ) >>= ret; runtime.pyObject2Any( pyInstance ) >>= ret;
......
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