From 6e52ff19417683063ca0d2a53010a810305affc2 Mon Sep 17 00:00:00 2001 From: shivamsinghydv Date: Mon, 23 Mar 2026 18:04:13 +0530 Subject: [PATCH] bluetooth: Before activation of a local device in UI, verify that it has a valid address. Change-Id: I516d71312ed269d75fa9ae81e05cabfa41f264fa Reviewed-on: https://review.haiku-os.org/c/haiku/+/10568 Reviewed-by: waddlesplash --- src/preferences/bluetooth/BluetoothSettingsView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/preferences/bluetooth/BluetoothSettingsView.cpp b/src/preferences/bluetooth/BluetoothSettingsView.cpp index 0b4d2e4dad..b60115ed5c 100644 --- a/src/preferences/bluetooth/BluetoothSettingsView.cpp +++ b/src/preferences/bluetooth/BluetoothSettingsView.cpp @@ -262,7 +262,8 @@ BluetoothSettingsView::_BuildLocalDevicesMenu() void BluetoothSettingsView::_MarkLocalDevice(LocalDevice* lDevice) { - // TODO: Device integrity should be rechecked. + if (bdaddrUtils::Compare(lDevice->GetBluetoothAddress(), BDADDR_NULL)) + return; fExtDeviceView->SetLocalDevice(lDevice); fExtDeviceView->SetEnabled(true);