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
TBR=mef@chromium.org,pauljensen@chromium.org
NOTRY=true
NOPRESUBMIT=true
Review-Url: https://codereview.chromium.org/2003503003
Cr-Commit-Position: refs/heads/master@{#395375}
(cherry picked from commit ff2ec75896222f8a2ddc6b9e1551276929a0b671)
Patch Set 1 #
Messages
Total messages: 12 (7 generated)
|
||||||||||||||||||||||||||||