The error message you are seeing is caused by dereferencing a null pointer in native code. From what you show it's hard to guess what may be the cause.
In your place I'd double check that you're not passing a null references to a system or library method.