OSDN Git Service

Enforce null check for mAccessPoint
authorNingyuan Wang <nywang@google.com>
Fri, 3 Nov 2017 18:16:56 +0000 (11:16 -0700)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Thu, 9 Nov 2017 05:43:07 +0000 (05:43 +0000)
commit01f46a3642c8f7e8788bfb69671996566e8464b4
treeaaf2ff920a639ce5e6e19f8f2f3049d4792162a6
parentbfc1cee888850b9f55cf42ffacb17a217381da9c
Enforce null check for mAccessPoint

mAccessPoint == null implies this is a new network.
In this case, we don't need to check if it's a carrier AP.

Bug: 68846574
Test: compile, manually test that crash does not happen again.
Test: make RunSettingsRoboTests -j40 aROBOTEST_FILTER=WifiConfigControllerTest

Change-Id: I03b1da5e8f0b8e4270c0c52c67bbc90c999be078
(cherry picked from commit 0117b995f44758a64b7af6d2d11e17d10ef125ce)
(cherry picked from commit 6c12f06bf896ce0ab6e91af27ac14263533e43fc)
src/com/android/settings/wifi/WifiConfigController.java