We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0df8b60 + af6139d commit b1da316Copy full SHA for b1da316
src/main/c/src/SerialImp.c
@@ -3081,6 +3081,11 @@ int read_byte_array( JNIEnv *env,
3081
struct event_info_struct *eis = ( struct event_info_struct * )
3082
get_java_var_long( env, *jobj,"eis","J" );
3083
3084
+ if (eis == NULL) {
3085
+ throw_java_exception(env, IO_EXCEPTION, "read_byte_array",
3086
+ "Unable to read byte array");
3087
+ return -1;
3088
+ }
3089
report_time_start();
3090
flag = eis->eventflags[SPE_DATA_AVAILABLE];
3091
eis->eventflags[SPE_DATA_AVAILABLE] = 0;
0 commit comments