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

Commit bc879404 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Return if sBluetoothHfpInterface pointer is NULL"

parents 640792ba b00c8905
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(),