diff options
| author | Brian Duddie <bduddie@google.com> | 2019-06-19 16:57:14 -0700 |
|---|---|---|
| committer | Anthony Stange <stange@google.com> | 2019-08-26 09:59:17 -0400 |
| commit | 4a334be77e4508a95df78073e61245a8127ebbc9 (patch) | |
| tree | 09ecca91f0a80396c58a4783f411ecda7d925105 /identity/support/src/cppbor_parse.cpp | |
| parent | 9d738733f4ad1c44ae55f88a93b89f924baa8e73 (diff) | |
Avoid NPD when re-initializing HAL fails
If the sensors HAL crashes or errors out during a test where we manually
re-run the environment setup function (e.g.
CleanupConnectionsOnInitialize), the pointer to the interface will
become null. Avoid dereferencing it by checking for nullness in the
per-test setup function and after each manual setup call. Also add a
death recipient to help identify instances where the HAL crashes during
a test.
Bug: 136736906
Test: run VTS on device where HAL crashes during above mentioned test
Change-Id: Iff7aa159c6b859272cfd18e7efb3ca431ea214fc
Merged-In: Iff7aa159c6b859272cfd18e7efb3ca431ea214fc
(cherry picked from commit bd109b9374360477e4e9a43b926710a394e7702d)
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions
