summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-10 11:56:06 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-10 13:39:17 +0100
commit0df43cc217b6382000a109f86e706b139a8e5c29 (patch)
tree27c141c1236deebb0eabb8188120d7ee6ca20c4a /pyuno
parent462f7e43a059c10e431e66d8237ab1279620f685 (diff)
coverity#982756 Dereference null return value
Change-Id: I5bfb5c86093aca4b88b2abf39836a1c6d7cb0bea
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/source/module/pyuno_runtime.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx
index cb2ba906aa53..0f16d99e73e4 100644
--- a/pyuno/source/module/pyuno_runtime.cxx
+++ b/pyuno/source/module/pyuno_runtime.cxx
@@ -495,7 +495,7 @@ PyRef Runtime::any2PyObject (const Any &a ) const
if( com::sun::star::uno::TypeClass_EXCEPTION == a.getValueTypeClass() )
{
// add the message in a standard python way !
- PyRef args( PyTuple_New( 1 ), SAL_NO_ACQUIRE );
+ PyRef args( PyTuple_New( 1 ), SAL_NO_ACQUIRE, NOT_NULL );
// assuming that the Message is always the first member, wuuuu
void *pData = (void*)a.getValue();