Merge "Audio HAL: Check if ProviderFactory is null before printing debugging"
am: 32202930cd
Change-Id: I047574f44d3194f23774c3c75839657674174217
diff --git a/audio_hal_interface/client_interface.cc b/audio_hal_interface/client_interface.cc
index becc9ef..cc1c96e 100644
--- a/audio_hal_interface/client_interface.cc
+++ b/audio_hal_interface/client_interface.cc
@@ -217,10 +217,10 @@
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 =