summaryrefslogtreecommitdiff
path: root/src/android/net/util/NetworkStackUtils.java
diff options
context:
space:
mode:
authorLucas Lin <lucaslin@google.com>2020-06-02 11:01:41 +0000
committerLucas Lin <lucaslin@google.com>2020-06-02 15:00:40 +0000
commit10039a4753b2436984a40291c73e916ab21fe852 (patch)
treeeca1bfe0c737998ceea3c7a28da36a62bc896598 /src/android/net/util/NetworkStackUtils.java
parent72b7075e12632e4c1944d07631b2ef7557ec8210 (diff)
Add a null check to prevent NullPointerException
TelephonyManager#getAllCellInfo() may return null, so before running the foreach loop, the null check is needed. Bug: 156567547 Test: atest NetworkStackTests:NetworkMonitorTest Change-Id: I925eefaffeadd87ef1b18204cbf82a9e63779a10 Merged-In: I5d5e98add0ea2abf92156c11188739c535e7e9a8 (cherry picked from commit 9d5cc53017e82505ec29cd2f17736a0dfdc3bb91)
Diffstat (limited to 'src/android/net/util/NetworkStackUtils.java')
0 files changed, 0 insertions, 0 deletions