diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-26 15:04:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-26 15:51:59 +0100 |
commit | 9fbcf18e5372230f02d080a4860b8c358267a185 (patch) | |
tree | 9241897cba915327920082a269fe82705d8d1a04 /pyuno/source | |
parent | f556b1b614eb54159a58201c1b266b120050ed5a (diff) |
coverity#982751 Dereference null return value
Change-Id: I070317e55cf3260d1d50def0894a507cd08cc43f
Diffstat (limited to 'pyuno/source')
-rw-r--r-- | pyuno/source/loader/pyuno_loader.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pyuno/source/loader/pyuno_loader.cxx b/pyuno/source/loader/pyuno_loader.cxx index ead7dbdd2c38..36d6ffddf0d6 100644 --- a/pyuno/source/loader/pyuno_loader.cxx +++ b/pyuno/source/loader/pyuno_loader.cxx @@ -47,6 +47,7 @@ using pyuno::PyRef; +using pyuno::NOT_NULL; using pyuno::Runtime; using pyuno::PyThreadAttach; @@ -241,7 +242,7 @@ Reference< XInterface > CreateInstance( const Reference< XComponentContext > & c com::sun::star::uno::makeAny( ctx ) ); 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() ); PyRef pyInstance( PyObject_CallObject( clazz.get() , args.get() ), SAL_NO_ACQUIRE ); runtime.pyObject2Any( pyInstance ) >>= ret; |