[bluetooth.bluez] fix UnsatisfiedLinkException on Windows (#17107)

Signed-off-by: AndrewFG <software@whitebear.ch>
This commit is contained in:
Andrew Fiddian-Green 2024-07-21 10:12:58 +01:00 committed by GitHub
parent 90dced717c
commit 2ba2225ee9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -81,7 +81,7 @@ public class DeviceManagerFactory {
// Exception caused by first call to the library
try {
return DeviceManager.createInstance(false);
} catch (DBusException ex) {
} catch (DBusException | UnsatisfiedLinkError ex) {
// we might be on a system without DBus, such as macOS or Windows
logger.debug("Failed to initialize DeviceManager: {}", ex.getMessage());
return null;