[Wi-Fi] Prevent fatal exception for null intent action
Intent action may be null. Bug: 139020487 Test: WifiScanModeActivityTest WifiNoInternetDialogTest WifiDppConfiguratorActivityTest WifiDppEnrolleeActivityTest Change-Id: Ie6119a86aaee1a6b40710705a0ea7d92c24736d6
This commit is contained in:
@@ -46,8 +46,8 @@ public class WifiScanModeActivity extends FragmentActivity {
|
||||
super.onCreate(savedInstanceState);
|
||||
Intent intent = getIntent();
|
||||
if (savedInstanceState == null) {
|
||||
if (intent != null && intent.getAction()
|
||||
.equals(WifiManager.ACTION_REQUEST_SCAN_ALWAYS_AVAILABLE)) {
|
||||
if (intent != null && WifiManager.ACTION_REQUEST_SCAN_ALWAYS_AVAILABLE
|
||||
.equals(intent.getAction())) {
|
||||
ApplicationInfo ai;
|
||||
mApp = getCallingPackage();
|
||||
try {
|
||||
|
Reference in New Issue
Block a user