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

Commit efc504bb authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

Fix arguments checking in AudioSystem::getDirectProfilesForAttributes

Bug: 215794103
Test: atest audiosystem_tests
Change-Id: I443ba0bc8ef0ffb95603d53436eaebb842eb79c2
parent 9cbb81ce
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;
    }