Fixed crash (because of null array) in android jni files.