Issue #1832 fix getNumPy() error handling

Change-Id: If2a0d3747c38cf716c3fa431c4135f2dee7c5405

Former-commit-id: ce7e89b8300580a57a5c133a78e8c84e2cb7449e
This commit is contained in:
Nate Jensen 2013-03-26 18:30:19 -05:00
parent f3fd91c311
commit e4cdfe0ca9

View file

@ -768,7 +768,7 @@ static PyObject* pyjobject_numpy(PyJobject_Object *obj) {
getMethod = (*env)->GetMethodID(env, numpyable, "getNumPy", "()[Ljava/lang/Object;");
objarray = (jobjectArray) (*env)->CallObjectMethod(env, obj->object, getMethod);
if(objarray == NULL)
if(process_java_exception(env) || !objarray)
{
Py_INCREF(Py_None);
return Py_None;