unreferencing pointers

Ty Young youngty1997 at gmail.com
Tue Dec 17 08:32:06 UTC 2019


Hi,


Thanks to the LLVM 9 commit I've been able to create bindings for 
jextract. Problem is that the libusb API utilizes "unreference" 
variables to store the list of USB devices at it's entry pointer.


 From the "In a nutshell..." section:


libusb_device **list;

libusb_device *found = NULL;

ssize_t cnt = libusb_get_device_list(NULL, &list);


...which -unless I'm missing something- doesn't work in Java since 
variables have to be declared as *something* and declaring it as null 
hits an internal NullPointerException check.


Is this an unsupported edge case or am I missing something?


Thanks.



More information about the panama-dev mailing list