Hello
I want to send reports to my USB mice . The problem is when i want to use the device object it returns null . Im sure about the vendor and product id values.
About the serial number , when i read it from the device, it returned "?" for me , So i put it "null" here (i tried other values like "?" , " " , "" and so on .. but still returns null . This is the error :
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "com.codeminders.hidapi.HIDDevice.enableBlocking()" because "device" is null
Hello I want to send reports to my USB mice . The problem is when i want to use the device object it returns null . Im sure about the vendor and product id values. About the serial number , when i read it from the device, it returned "?" for me , So i put it "null" here (i tried other values like "?" , " " , "" and so on .. but still returns null . This is the error :
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "com.codeminders.hidapi.HIDDevice.enableBlocking()" because "device" is null
And here's my code :
Any suggestions would be greatly appreciated .