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

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

audioflinger: Fix missing 'return' statement in 'getParameters'

Without a 'return', the code attempts to call a method on
a null thread instance.

Bug: 62918718
Test: doesn't crash when bogus audio_io_handle passed to 'getParameters'
Change-Id: I356dfd9531e0de41d869b8e29909dee5843dc795
parent ed0f8f42
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1279,7 +1279,7 @@ String8 AudioFlinger::getParameters(audio_io_handle_t ioHandle, const String8& k
        if (thread == NULL) {
            thread = (ThreadBase *)checkMmapThread_l(ioHandle);
            if (thread == NULL) {
                String8("");
                return String8("");
            }
        }
    }