GetIntArrayElements NULLchecks added for #68