Chromium Code Reviews
DescriptionAdd a null check in ConnectivityManagerDelegate.getNetworkState
ConnectivityManager.getNetworkInfo can return null if the Network is invalid.
This CL adds a null check so we don't crash with a NullPointerException when
invoking networkInfo.getType()
BUG=613599
Review-Url: https://codereview.chromium.org/2003503003
Cr-Commit-Position: refs/heads/master@{#395375}
(cherry picked from commit ff2ec75896222f8a2ddc6b9e1551276929a0b671)
R=xunjieli@chromium.org
Committed: https://chromium.googlesource.com/chromium/src/+/d95785fc583925674b97a54860e5fa46a168be6b
Patch Set 1 #
Messages
Total messages: 5 (2 generated)
|
||||||||||||||||||||||||||||