handle null value properly in SetObjectArrayElement

This commit is contained in:
Joel Dice 2009-08-19 07:36:52 -06:00
parent 0a2e611baa
commit df3baeb83b

View File

@ -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