Skip to content

Commit f9db51a

Browse files
jni service fix
1 parent d0f1812 commit f9db51a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/jnibridge/service/jnibridgeservice.java.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class {{Camel .Interface.Name}}JniService extends Abstract{{Camel .Interf
5858
@Override
5959
public {{javaReturn "" .Return}} {{camel .Name}}({{javaParams "" .Params}}) {
6060
Log.w(TAG, "request method {{camel .Name}} called, will call native");
61-
return native{{Camel .Name}}({{javaVars .Params }});
61+
{{if not .Return.IsVoid}}return{{ end }} native{{Camel .Name}}({{javaVars .Params }});
6262
}
6363

6464
@Override

0 commit comments

Comments
 (0)