summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]src/com/android/settings/bluetooth/BluetoothPairingDialog.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/settings/bluetooth/BluetoothPairingDialog.java b/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
index 1ec8ff2..1cdd41a 100644..100755
--- a/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
+++ b/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
@@ -297,8 +297,8 @@ public final class BluetoothPairingDialog extends AlertActivity implements
}
public void afterTextChanged(Editable s) {
- if (s.length() > 0) {
- mOkButton.setEnabled(true);
+ if (mOkButton != null) {
+ mOkButton.setEnabled(s.length() > 0);
}
}