commit | 1acd0739fafe07d21dd5c11446c72179775ee7dc | [log] [tgz] |
---|---|---|
author | Adam He <adamhe@google.com> | Mon Apr 26 13:52:01 2021 -0700 |
committer | Adam He <adamhe@google.com> | Thu Apr 29 13:56:58 2021 -0700 |
tree | e1b7278c0ec4fe484178ed79b550b951c83f6acf | |
parent | 8a170b2edf8a7f0ba691aef118900af8789e7300 [diff] |
Change clearEvents() to clear existing events rather than setting mEvents to null to remove possible NPE. * clearEvents() needs to be called by destroy() which could cause race condition on whether mEvents is null for other func calls. Fixes: 185162720 Test: atest CtsContentCaptureServiceTestCases Change-Id: I7330e651bc890c8a86822158efcf17a61e927112