We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fatal Exception: java.lang.NullPointerException Attempt to read from null array com.felhr.usbserial.FTDISerialDevice.getBcdDevice (FTDISerialDevice.java:789) com.felhr.usbserial.FTDISerialDevice.encodedBaudRate (FTDISerialDevice.java:828) com.felhr.usbserial.FTDISerialDevice.setBaudRate (FTDISerialDevice.java:197)
It seems like an NPE check can be added to descriptors object to fix the issue. https://github.com/felHR85/UsbSerial/blob/master/usbserial/src/main/java/com/felhr/usbserial/FTDISerialDevice.java#L789
byte[] descriptors = connection.getRawDescriptors(); return (short) ((descriptors[13] << 8) + descriptors[12]);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Fatal Exception: java.lang.NullPointerException Attempt to read from null array com.felhr.usbserial.FTDISerialDevice.getBcdDevice (FTDISerialDevice.java:789) com.felhr.usbserial.FTDISerialDevice.encodedBaudRate (FTDISerialDevice.java:828) com.felhr.usbserial.FTDISerialDevice.setBaudRate (FTDISerialDevice.java:197)
It seems like an NPE check can be added to descriptors object to fix the issue.
https://github.com/felHR85/UsbSerial/blob/master/usbserial/src/main/java/com/felhr/usbserial/FTDISerialDevice.java#L789
byte[] descriptors = connection.getRawDescriptors(); return (short) ((descriptors[13] << 8) + descriptors[12]);
The text was updated successfully, but these errors were encountered: