prevent these JNI methods from returning NULL