From b75b626ee52b7dec91f48271aa58d66b27604e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Tue, 3 Jun 2014 17:07:18 +0100 Subject: [PATCH] coverity#982756 Dereference null return value Change-Id: Ia29c6167df0ce061fae88d81bef9a98ca37fcce3 --- pyuno/source/module/pyuno_runtime.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx index 5ef20df459ff..a4b81fca248c 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -524,7 +524,7 @@ PyRef Runtime::any2PyObject (const Any &a ) const Reference< XTypeConverter > tc = getImpl()->cargo->xTypeConverter; Reference< XSingleServiceFactory > ssf = getImpl()->cargo->xInvocation; tc->convertTo (a, ::getCppuType (&s)) >>= s; - PyRef tuple( PyTuple_New (s.getLength()), SAL_NO_ACQUIRE); + PyRef tuple( PyTuple_New (s.getLength()), SAL_NO_ACQUIRE, NOT_NULL); int i=0; try {