am e15cecc9: Merge "Don\'t crash in bugreport on devices without BT" into mnc-dev

* commit 'e15cecc90cbe0b7ae39e524e612fb6043324bad8':
  Don't crash in bugreport on devices without BT
This commit is contained in:
Jason Monk
2015-05-20 13:28:53 +00:00
committed by Android Git Automerger

View File

@@ -59,6 +59,9 @@ public class BluetoothControllerImpl implements BluetoothController, BluetoothCa
public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
pw.println("BluetoothController state:");
pw.print(" mLocalBluetoothManager="); pw.println(mLocalBluetoothManager);
if (mLocalBluetoothManager == null) {
return;
}
pw.print(" mEnabled="); pw.println(mEnabled);
pw.print(" mConnecting="); pw.println(mConnecting);
pw.print(" mLastDevice="); pw.println(mLastDevice);