diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-26 15:02:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-26 15:51:58 +0100 |
commit | dfddb56699469c62a2a1ccdea65821bab4f8d062 (patch) | |
tree | a3f1c3f4db32abb27c4fbcd929aa91c82589f63d | |
parent | 88d9c8705882b4791d42955a465cc3e7a2efaa3f (diff) |
coverity#982757 Dereference null return value
Change-Id: Ie2c88a778bb25e6909138e633fe115686e2cc026
-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 5a3e6ca218bf..5ef20df459ff 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -900,7 +900,7 @@ Any Runtime::extractUnoException( const PyRef & excType, const PyRef &excValue, if( PyCallable_Check(extractTraceback.get()) ) { - PyRef args( PyTuple_New( 1), SAL_NO_ACQUIRE ); + PyRef args( PyTuple_New( 1), SAL_NO_ACQUIRE, NOT_NULL ); PyTuple_SetItem( args.get(), 0, excTraceback.getAcquired() ); PyRef pyStr( PyObject_CallObject( extractTraceback.get(),args.get() ), SAL_NO_ACQUIRE); str = OUString::createFromAscii( PyStr_AsString(pyStr.get()) ); |