diff options
| author | 2023-05-23 00:19:33 +0000 | |
|---|---|---|
| committer | 2023-05-23 17:05:50 +0000 | |
| commit | dfd9ad4fd34014f9b772e150d389b9b9f9e5f4ae (patch) | |
| tree | bd20d7e0ab893c926f4ed276c6f6a1a9e9d3f233 /api/api.go | |
| parent | fd8948a9285f358a2364a84baa10d8ee01c0977a (diff) | |
Add null checking when deleting hotword detectors
Nullpointer exception could be thrown when the system does not specify
VisualQueryDetector and is trying to shutdown all hotword detectors.
This can lead to the destroy of hotword detectors to fail which further
leads to app crash when a second detector is created and further cause
memory leak.
Bug: 283264602
Test: atest CtsVoiceInteractionTestCases
Change-Id: If1a6b11ccfae6e3002e5587d0eb7de80943583c3
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions