From df3baeb83b92a110f25e142a687fc20a61c4173d Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Wed, 19 Aug 2009 07:36:52 -0600 Subject: [PATCH] handle null value properly in SetObjectArrayElement --- src/jnienv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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