commit | 37f58660a199f6e51ce9f71bda43b69dcdeb0735 | [log] [tgz] |
---|---|---|
author | Eric Rahm <erahm@google.com> | Wed May 24 18:32:21 2023 -0700 |
committer | Eric Rahm <erahm@google.com> | Sat May 27 00:14:17 2023 +0000 |
tree | 1d5faaef530bbdf9dba9dbd292e103bfe198a5ef | |
parent | 32f42bf93b53a98dc84de51f1c706ac0cae02375 [diff] |
Workaround a robelectric related NPE in SurfaceSyncGroup.addTimer Robolectric mocks out `HandlerThread` in such a way that in certain instances `HandlerThread.getLooper` returns null. Since adding the null check is small enough, we can opt to make this change to allow robolectric tests to run. Test: atest ClockworkSettingsRobotests Bug: 237804605 Change-Id: Ib28f80413265a770cfac44cf451714f1b66dfbc8