Merge "[WifiDialog] Allow adding unspecified AP"
diff --git a/src/com/android/settings/wifi/WifiDialogActivity.java b/src/com/android/settings/wifi/WifiDialogActivity.java
index 6f9e3d3..9eea98a 100644
--- a/src/com/android/settings/wifi/WifiDialogActivity.java
+++ b/src/com/android/settings/wifi/WifiDialogActivity.java
@@ -43,7 +43,10 @@
final Intent intent = getIntent();
final Bundle accessPointState = intent.getBundleExtra(KEY_ACCESS_POINT_STATE);
- final AccessPoint accessPoint = new AccessPoint(this, accessPointState);
+ AccessPoint accessPoint = null;
+ if (accessPointState != null) {
+ accessPoint = new AccessPoint(this, accessPointState);
+ }
WifiDialog dialog = new WifiDialog(this, this, accessPoint, WifiConfigUiBase.MODE_CONNECT);
dialog.show();