diff --git a/src/jnienv.cpp b/src/jnienv.cpp index 0b1b34760e..5195057e4a 100644 --- a/src/jnienv.cpp +++ b/src/jnienv.cpp @@ -1245,7 +1245,7 @@ SetObjectArrayElement(Thread* t, jobjectArray array, jsize index, { ENTER(t, Thread::ActiveState); - set(t, *array, ArrayBody + (index * BytesPerWord), *value); + set(t, *array, ArrayBody + (index * BytesPerWord), (value ? *value : 0)); } jbooleanArray JNICALL