diff options
Diffstat (limited to 'py/modules/IcePy/Operation.cpp')
-rw-r--r-- | py/modules/IcePy/Operation.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/py/modules/IcePy/Operation.cpp b/py/modules/IcePy/Operation.cpp index a112e6273d9..9dfaf051504 100644 --- a/py/modules/IcePy/Operation.cpp +++ b/py/modules/IcePy/Operation.cpp @@ -1,6 +1,6 @@ // ********************************************************************** // -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. +// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. @@ -1127,8 +1127,15 @@ IcePy::SyncTypedInvocation::invoke(PyObject* args) else { PyObject* ret = PyTuple_GET_ITEM(results.get(), 0); - Py_INCREF(ret); - return ret; + if(!ret) + { + return 0; + } + else + { + Py_INCREF(ret); + return ret; + } } } } |