Skip to content
Snippets Groups Projects
Commit fd387990 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

unix/modjni: After Call*Method(), Java exception should always be checked.

OpenJDK seemed to return NULL in case of exception, but Dalvik returns
arbitrary value, so skip such "optimizations".
parent fa391eed
No related branches found
No related tags found
No related merge requests found
......@@ -230,9 +230,7 @@ STATIC mp_obj_t jobject_subscr(mp_obj_t self_in, mp_obj_t index, mp_obj_t value)
} else if (value == MP_OBJ_SENTINEL) {
// load
jobject el = JJ(CallObjectMethod, self->obj, List_get_mid, idx);
if (el == NULL) {
check_exception();
}
return new_jobject(el);
} else {
// store
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment