diff options
| author | 2022-05-11 15:29:36 +0100 | |
|---|---|---|
| committer | 2022-05-26 22:34:53 +0000 | |
| commit | 0a1ebcd8aeb4a854b7a6223ab63da0b44bf676c3 (patch) | |
| tree | a6912bb482612e32efca8cc26b56b40911ba4df3 /libs/androidfw/StringPool.cpp | |
| parent | 09261f42c2c992a0a24081096340fb61ee7c975b (diff) | |
Add a null check when getting TransportConnection in PFTBT
We currently call TransportManager#getCurrentTransportClient (marked as
@Nullable) in PerformFullTransportBackupTask without checking the result
for null. This causes occasional crashes (see attached bug).
Handle the case when TransportManager returns null.
Bug: 224056224
Test: 1. Manual: hardcode null return value in
TransportManager#getCurrentTransport client, initiate a full backup,
verify system_server does not crash)
2. atest PerformFullTransportBackupTaskTest
Change-Id: Ic9fff3944cda712db4faa2f746449240558fd4d7
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions