Skip to content

NullPointerException after opening device #21

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions