Merge commit 'e60a8ebd0e2a1911c0c5ac5f5b1d3e8f1c212cb1' * commit 'e60a8ebd0e2a1911c0c5ac5f5b1d3e8f1c212cb1': Fix string name for bluetooth pairing and fix NPE
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