commit | b68025b80e426bd898ae844d23160b0729e4ccf3 | [log] [tgz] |
---|---|---|
author | Mikhail Naganov <mnaganov@google.com> | Thu Jun 25 21:41:30 2020 +0000 |
committer | Mikhail Naganov <mnaganov@google.com> | Thu Jun 25 21:41:30 2020 +0000 |
tree | 647599abdd962569278763d9376227d8af62d18c | |
parent | e4e478ed92c3e5bef8aa7bfe332ceebd1ebc2798 [diff] |
SoundEffectsHelper: Fix NPE when calling into SoundPool The instance of SoundPool might get released as a result of unloading sound effects. Required checks for the validity of the SoundPool pointer were missing resulting in an NPE. Bug: 159870337 Test: atest android.media.cts.AudioManagerTest#testSoundEffects Change-Id: Ief4f7f0027a1f03f71d3db5af623df9ad3c37a1b