Issue #1832 fix getNumPy() error handling
Change-Id: If2a0d3747c38cf716c3fa431c4135f2dee7c5405 Former-commit-id:49fdcf9e55
[formerlydc53db5181
] [formerlye4cdfe0ca9
] [formerly74b21dc1b4
[formerlye4cdfe0ca9
[formerly ce7e89b8300580a57a5c133a78e8c84e2cb7449e]]] Former-commit-id:74b21dc1b4
Former-commit-id: 22ed5d848545d777dd0f275f81d9601e754f7d4f [formerly494a673c37
] Former-commit-id:0cf9a03133
This commit is contained in:
parent
55572918b3
commit
d3bd10f1f2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue