Loading jni/com_android_bluetooth_btservice_AdapterService.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -1255,7 +1255,9 @@ static jint createSocketChannelNative(JNIEnv* env, jobject obj, jint type, goto done; } uuidBytes = env->GetByteArrayElements(uuid, nullptr); if (serviceName != nullptr) { nativeServiceName = env->GetStringUTFChars(serviceName, nullptr); } if (uuidBytes == nullptr) { jniThrowIOException(env, EINVAL); goto done; Loading Loading
jni/com_android_bluetooth_btservice_AdapterService.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -1255,7 +1255,9 @@ static jint createSocketChannelNative(JNIEnv* env, jobject obj, jint type, goto done; } uuidBytes = env->GetByteArrayElements(uuid, nullptr); if (serviceName != nullptr) { nativeServiceName = env->GetStringUTFChars(serviceName, nullptr); } if (uuidBytes == nullptr) { jniThrowIOException(env, EINVAL); goto done; Loading