If no drivers are aviable for usb device UsbSerialProber.probeSingleDevice(...)
method throws NullPointerException.
After small change in implementation of this method (additional if) everything
looks ok.
Proposed new wersion of the method, commented additional line if
(probedDevices!= null)
-----------------------------------------------------------------------
public static List<UsbSerialDriver> probeSingleDevice(final UsbManager
usbManager,
UsbDevice usbDevice) {
final List<UsbSerialDriver> result = new ArrayList<UsbSerialDriver>();
for (final UsbSerialProber prober : values()) {
final List<UsbSerialDriver> probedDevices = prober.probe(usbManager, usbDevice);
if (probedDevices!= null) \\additional line to solve the problem
result.addAll(probedDevices);
}
return result;
}
------------------------------------------------------------------------
What version of the product are you using? On what operating system?
Library in newest version, was downloaded yesterday (17-07-2013).
Used on GalaxyTab2 Android v. 4.1.1
Original issue reported on code.google.com by krzyszto...@gmail.com on 18 Jul 2013 at 2:36
Original issue reported on code.google.com by
krzyszto...@gmail.com
on 18 Jul 2013 at 2:36