Fix string name for bluetooth pairing and fix NPE
Change-Id: Ibfd0e1e1ed3e1a1e5939d0bdffd17e2e929317b1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user