coverity#982756 Dereference null return value

Change-Id: Ia29c6167df0ce061fae88d81bef9a98ca37fcce3
This commit is contained in:
Caolán McNamara
2014-06-03 17:07:18 +01:00
parent 229abf40ac
commit b75b626ee5

View File

@@ -524,7 +524,7 @@ PyRef Runtime::any2PyObject (const Any &a ) const
Reference< XTypeConverter > tc = getImpl()->cargo->xTypeConverter; Reference< XTypeConverter > tc = getImpl()->cargo->xTypeConverter;
Reference< XSingleServiceFactory > ssf = getImpl()->cargo->xInvocation; Reference< XSingleServiceFactory > ssf = getImpl()->cargo->xInvocation;
tc->convertTo (a, ::getCppuType (&s)) >>= s; 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; int i=0;
try try
{ {