When callback from native api are invoked, Gluegen dispatch event to JavaCallback registered and convert CompoundType into CompoundTypeWrapper related, but if native callback can pass NULL pointer, wrapping fail with NPE. (Example : JOAL with ALC_SOFT_system_events, atm device parameter are always NULL)
I've made a patch available here : https://github.com/MathiusD/gluegen in 1482-npe-on-java-callback-call-with-native-null-ptr Comparison link : https://github.com/JogAmp/gluegen/compare/master...MathiusD:gluegen:1482-npe-on-java-callback-call-with-native-null-ptr
Merged, thx