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

* commit 'aa488cb83507ee7e469c4d8c6aa3198b3010d79e':
  Don't crash in bugreport on devices without BT
This commit is contained in:
Jason Monk
2015-05-20 13:43:02 +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);