Skip to content

Commit 3b4a56d

Browse files
committed
fix: null data
1 parent f6feadc commit 3b4a56d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-app/runtime/src/main/cpp/JsArgToArrayConverter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ bool JsArgToArrayConverter::ConvertArg(Local<Context> context, const Local<Value
278278
bufferCastType = JsArgConverter::GetCastType(array);
279279
}
280280

281-
if(data != nullptr){
281+
if(data == nullptr){
282282
data = static_cast<uint8_t *>(store->Data()) + offset;
283283
}
284284

0 commit comments

Comments
 (0)