diff options
author | Mikhail Naganov <mnaganov@google.com> | 2020-06-25 21:41:30 +0000 |
---|---|---|
committer | Mikhail Naganov <mnaganov@google.com> | 2020-06-25 21:41:30 +0000 |
commit | b68025b80e426bd898ae844d23160b0729e4ccf3 (patch) | |
tree | 647599abdd962569278763d9376227d8af62d18c /tools/aapt2/java/JavaClassGenerator_test.cpp | |
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions