When weak refs are passed through the JNI layer in java-gnome, this results in NPEs being thrown in situations where this is not physically possible (i.e. there is an assert != NULL before the function returns, yet the function returns NULL)
There is a fix pending for this upstream, and will hopefully soon be upstream and available