2023-11-03 13:33:41.877 31180-31807 AndroidRuntime pid-31180 E FATAL EXCEPTION: pool-23-thread-2
Process: com.okhiroyuki.redmobile, PID: 31180
java.lang.NullPointerException: Attempt to invoke interface method 'android.hardware.usb.UsbEndpoint com.hoho.android.usbserial.driver.UsbSerialPort.getReadEndpoint()' on a null object reference
at com.hoho.android.usbserial.util.SerialInputOutputManager.<init>(SerialInputOutputManager.java:72)
at org.apache.cordova.plugins.serial.Serial.startIoManager(Serial.java:419)
at org.apache.cordova.plugins.serial.Serial.onDeviceStateChange(Serial.java:429)
at org.apache.cordova.plugins.serial.Serial.access$1200(Serial.java:43)
at org.apache.cordova.plugins.serial.Serial$5.run(Serial.java:396)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)