Called from Thread.run() in SerialPortEventListener.startListening().
|
setEventListeningStatus(portHandle, false); |
Looks like there's a race with closing the port or shutting down, that the portHandle is set to 0 before the native code is called.
The native code then dereferences the null pointer here:
|
port->eventListenerRunning = eventListenerRunning; |
Called from
Thread.run()inSerialPortEventListener.startListening().jSerialComm/src/main/java/com/fazecast/jSerialComm/SerialPort.java
Line 2098 in ff8a78f
Looks like there's a race with closing the port or shutting down, that the portHandle is set to 0 before the native code is called.
The native code then dereferences the null pointer here:
jSerialComm/src/main/c/Posix/SerialPort_Posix.c
Line 1091 in ff8a78f