commit | dfd9ad4fd34014f9b772e150d389b9b9f9e5f4ae | [log] [tgz] |
---|---|---|
author | Charles Chen <liangyuchen@google.com> | Tue May 23 00:19:33 2023 +0000 |
committer | Charles Chen <liangyuchen@google.com> | Tue May 23 17:05:50 2023 +0000 |
tree | bd20d7e0ab893c926f4ed276c6f6a1a9e9d3f233 | |
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