Merge "Fixing null deference crash in audio service"

This commit is contained in:
Pawan Wagh
2023-02-01 23:02:12 +00:00
committed by Gerrit Code Review

View File

@@ -953,7 +953,7 @@ ndk::ScopedAStatus Module::setMicMute(bool in_mute) {
}
ndk::ScopedAStatus Module::getMicrophones(std::vector<MicrophoneInfo>* _aidl_return) {
*_aidl_return = mConfig->microphones;
*_aidl_return = getConfig().microphones;
LOG(DEBUG) << __func__ << ": returning " << ::android::internal::ToString(*_aidl_return);
return ndk::ScopedAStatus::ok();
}