Skip to content

Commit cc74578

Browse files
committed
fix: handle the fallible execution context lookup in setOutputStream
1 parent 62a41cd commit cc74578

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎native/core/src/execution/jni_api.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ pub extern "system" fn Java_org_apache_comet_Native_setOutputStream(
998998
));
999999
}
10001000

1001-
let exec_context = get_execution_context(exec_context);
1001+
let exec_context = get_execution_context(exec_context)?;
10021002
register_before_execution(
10031003
exec_context.root_op.is_some(),
10041004
&mut exec_context.output_stream,

0 commit comments

Comments
 (0)