commit | 00ccb51aa394a570c63cdec2a45723b17ff2a87c | [log] [tgz] |
---|---|---|
author | Motomu Utsumi <motomuman@google.com> | Tue May 30 18:14:50 2023 +0900 |
committer | Motomu Utsumi <motomuman@google.com> | Fri Jun 09 17:28:47 2023 +0900 |
tree | 89f2f82f61f5f79aff6ef764e1db090423a34ddb | |
parent | 5dfaf4e176cb0567a851a100a4f5076145fc5fbc [diff] |
Add idleTimer existence check before removing idleTimer IdleTimer tracking can be disabled if configured timeout is 0 or negative value. In this case, setupDataActivityTracking does not add idleTimer and removeDataActivityTracking causes NPE. This did not cause crash since the code to cause NPE is wrapped by try catch. This CL adds check to avoid causing NPE. Bug: 267870186 Bug: 279380356 Test: atest FrameworksNetTests Change-Id: Id774c5ee3d0318d9736f287c50ccf4c7c5743aef