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

Commit ef190314 authored by Satish Kodishala's avatar Satish Kodishala Committed by android-build-merger
Browse files

Merge "Return if sBluetoothHfpInterface pointer is NULL"

am: c9d26b6a

Change-Id: I16d61f7aec637887d021faeb669d93914e44ffd0
parents e707fabb c9d26b6a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -446,6 +446,7 @@ static void initializeNative(JNIEnv* env, jobject object, jint max_hf_clients,
  if (!sBluetoothHfpInterface) {
    ALOGW("%s: Failed to get Bluetooth Handsfree Interface", __func__);
    jniThrowIOException(env, EINVAL);
    return;
  }
  bt_status_t status =
      sBluetoothHfpInterface->Init(JniHeadsetCallbacks::GetInstance(),