summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2010-03-05 17:51:40 -0800
committerAdam Powell <adamp@google.com>2010-03-05 17:51:40 -0800
commit2d70273673e2f3b83a52dc5baa206a568fe5b3bd (patch)
treea31465c953745111fbd78a9821f24c6409482b36
parent730eb7e5ffa56cae2224a836f489b8e1e94b1f09 (diff)
downloadpackages_apps_Settings-2d70273673e2f3b83a52dc5baa206a568fe5b3bd.zip
packages_apps_Settings-2d70273673e2f3b83a52dc5baa206a568fe5b3bd.tar.gz
packages_apps_Settings-2d70273673e2f3b83a52dc5baa206a568fe5b3bd.tar.bz2
Added null check for monkey behavior
-rw-r--r--src/com/android/settings/wifi/WifiSettings.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/wifi/WifiSettings.java b/src/com/android/settings/wifi/WifiSettings.java
index e06dcd4..0607b67 100644
--- a/src/com/android/settings/wifi/WifiSettings.java
+++ b/src/com/android/settings/wifi/WifiSettings.java
@@ -254,7 +254,7 @@ public class WifiSettings extends PreferenceActivity implements DialogInterface.
public void onClick(DialogInterface dialogInterface, int button) {
if (button == WifiDialog.BUTTON_FORGET && mSelected != null) {
forget(mSelected.networkId);
- } else if (button == WifiDialog.BUTTON_SUBMIT) {
+ } else if (button == WifiDialog.BUTTON_SUBMIT && mDialog != null) {
WifiConfiguration config = mDialog.getConfig();
if (config == null) {