Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee06c2da authored by Jack He's avatar Jack He Committed by android-build-merger
Browse files

Merge "JNI: Check if service name is null in createSocketChannelNative" am: 79c51c6a

am: 170b993c

Change-Id: I0b763036c5a8b077dc2d5f69f067c45a161a305c
parents 91bc772d 170b993c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;