-
Notifications
You must be signed in to change notification settings - Fork 0
NullPointerException after opening device #21
Copy link
Copy link
Open
Description
What steps will reproduce the problem?
1. Compiled on 64bit Ubuntu 12.4, copied the libhidapi-jni.so to /usr/lib
2. Running HIDAPITest lists mouse/keyboard and DataLogic barcodescanner
successfully (DataLogic under /dev/hidraw3)
3. Uncomment the command readDevice for appropriate vendorID/productID or use
the openByPath method.
What is the expected output? What do you see instead?
I expect an actual object returned by openByPath/ById,
buth it returns null on any listed USB-device, generating
anNullPointerException on the next line:
System.err.print("Manufacturer: " + dev.getManufacturerString() + "\n");
What version of the product are you using? On what operating system?
v2011-12-21 on Ubuntu 12.4 x64
Please provide any additional information below.
Is there something trivial I am doing wrong? Listing devices works fine,
however opening a device not.
Original issue reported on code.google.com by martijnv...@gmail.com on 1 Jun 2012 at 9:58
Reactions are currently unavailable