okhiroyuki / cordova-plugin-usb-serial

Cordova/Phonegap plugin for USB host serial communication from an Android device.
https://www.npmjs.com/package/@red-mobile/cordova-plugin-usb-serial
MIT License
3 stars 6 forks source link

close error #25

Closed okhiroyuki closed 1 year ago

okhiroyuki commented 1 year ago
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)