mirror of
https://github.com/corda/corda.git
synced 2025-06-21 16:49:45 +00:00
handle null value properly in SetObjectArrayElement
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user