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

Commit dede63b8 authored by Sal Savage's avatar Sal Savage Committed by Myles Watson
Browse files

Audio HAL: Check if ProviderFactory is null before printing debugging

Test: Build and flash on auto hardware to make sure the error went away
Change-Id: I90a8f3a0e0cbc23e7e4a2edcead46402f44ef3a4
parent f8e86f4c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -217,10 +217,10 @@ void BluetoothAudioClientInterface::fetch_audio_provider() {

  android::sp<IBluetoothAudioProvidersFactory> providersFactory =
      IBluetoothAudioProvidersFactory::getService();
  CHECK(providersFactory != nullptr);
  LOG(INFO) << "IBluetoothAudioProvidersFactory::getService() returned "
            << providersFactory.get()
            << (providersFactory->isRemote() ? " (remote)" : " (local)");
  CHECK(providersFactory != nullptr);

  std::promise<void> getProviderCapabilities_promise;
  auto getProviderCapabilities_future =