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

This commit is contained in:
Jason Monk
2015-05-20 13:16:01 +00:00
committed by Android (Google) Code Review

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);