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

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

Merge "Return if sBluetoothHfpInterface pointer is NULL"

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