Skip to content

Commit 9546328

Browse files
committed
fix: callback return void crash
1 parent 3e9f92c commit 9546328

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dart_native/android/src/main/jni/dart_native.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ extern "C"
444444
{
445445
callbackResult = convertToJavaUtf16(env, (char *)arguments[argumentCount], nullptr, 0);
446446
}
447-
else
447+
else if (strcmp(returnType, "void") != 0)
448448
{
449449
callbackResult = (jobject)arguments[argumentCount];
450450
}

0 commit comments

Comments
 (0)