Merge "Make sure that the device name is not null before returning it"
am: d4963e8035
Change-Id: Ia9f3baa2e1c78bb1ebde2be9a412d96f76e5a225
This commit is contained in:
@@ -103,7 +103,7 @@ public final class CachedBluetoothDeviceManager {
|
||||
*/
|
||||
public String getName(BluetoothDevice device) {
|
||||
CachedBluetoothDevice cachedDevice = findDevice(device);
|
||||
if (cachedDevice != null) {
|
||||
if (cachedDevice != null && cachedDevice.getName() != null) {
|
||||
return cachedDevice.getName();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user