Index: vm/interpreter/src/interp_native_ia32.cpp =================================================================== --- vm/interpreter/src/interp_native_ia32.cpp (revision 503990) +++ vm/interpreter/src/interp_native_ia32.cpp (working copy) @@ -182,11 +182,15 @@ { jobject obj = (jobject) invokeJNI_Obj(arg_words, argId, f); hythread_suspend_disable(); - ManagedObject *ref = obj->object; + ManagedObject *ref = obj ? obj->object : NULL; M2N_FREE_MACRO; - ObjectHandle new_handle = oh_allocate_local_handle(); - new_handle->object = ref; - resultPtr->l = new_handle; + if (obj) { + ObjectHandle new_handle = oh_allocate_local_handle(); + new_handle->object = ref; + resultPtr->l = new_handle; + } else { + resultPtr->l = 0; + } } break;