diff options
author | Kenny Guy <kennyguy@google.com> | 2018-04-03 13:16:58 +0100 |
---|---|---|
committer | Kenny Guy <kennyguy@google.com> | 2018-04-03 13:22:13 +0100 |
commit | 637f8be6b6156b2dbcdccca4e9408b180ed1e7c5 (patch) | |
tree | 78ca5af06534f9e5f25e3ce23bbf4ee5b5d1bbfd /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 07a75e0f9f93980ea52e3ff337c8f4da504fb8e2 (diff) |
Avoid null pointer when in getAmbientBrightnessStats
Check whether the tracker has been started before
trying to return stats.
Add unit test to check empty lists are returned
rather than null.
Bug: 76008231
Test: atest BrightnessTrackerTest
Change-Id: Icc7ef0ee43a95eb182cb1b0b9452f122363e67ba
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions