diff --git a/AndroidManifest.xml b/AndroidManifest.xml index c6668710ce2..1ea703caa84 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -444,7 +444,7 @@ android:label="@string/bluetooth_connect_specific_profiles_title" /> diff --git a/src/com/android/settings/bluetooth/LocalBluetoothManager.java b/src/com/android/settings/bluetooth/LocalBluetoothManager.java index 70375821126..775b1208a03 100644 --- a/src/com/android/settings/bluetooth/LocalBluetoothManager.java +++ b/src/com/android/settings/bluetooth/LocalBluetoothManager.java @@ -256,7 +256,8 @@ public class LocalBluetoothManager { CachedBluetoothDevice cachedDevice = mCachedDeviceManager.findDevice(device); String name = null; if (cachedDevice == null) { - name = device.getName(); + if (device != null) name = device.getName(); + if (name == null) { name = mContext.getString(R.string.bluetooth_remote_device); }