commit | 74bb7e9415ec99249c2b7c7cd5a13eb03621a5cd | [log] [tgz] |
---|---|---|
author | Hall Liu <hallliu@google.com> | Mon Jun 01 15:46:59 2020 -0700 |
committer | Hall Liu <hallliu@google.com> | Tue Jun 16 13:52:33 2020 -0700 |
tree | 7b8f53464bec80260683fa57ad5a1f3585c0d0a9 | |
parent | 82a4f85c447786f66caddeab485d221d13a7821a [diff] |
Fix null pointer exception in TelephonyConnection Sometimes, a race condition will cause getForegroundCall.getImsCall to return null after a previous null check has already passed. Fix this by caching the variables locally before the null check so they don't change from out under us. Fixes: 157426224 Test: manual Change-Id: I751a7e777e14287351cfa65af01e50351aee08b8