mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
handle null value properly in SetObjectArrayElement
This commit is contained in:
parent
0a2e611baa
commit
df3baeb83b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user