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

Commit 7b75108b authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

Fix arguments checking in AudioSystem::getDirectProfilesForAttributes

Bug: 215794103
Test: atest audiosystem_tests
Merged-In: I443ba0bc8ef0ffb95603d53436eaebb842eb79c2
Change-Id: I443ba0bc8ef0ffb95603d53436eaebb842eb79c2
(cherry picked from commit efc504bb)
parent 828fe9fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2317,7 +2317,7 @@ status_t AudioSystem::getDirectPlaybackSupport(const audio_attributes_t *attr,

status_t AudioSystem::getDirectProfilesForAttributes(const audio_attributes_t* attr,
                                                std::vector<audio_profile>* audioProfiles) {
    if (attr == nullptr) {
    if (attr == nullptr || audioProfiles == nullptr) {
        return BAD_VALUE;
    }