From 2ba2225ee92b2492aa418fc22f59b02d1446abce Mon Sep 17 00:00:00 2001 From: Andrew Fiddian-Green Date: Sun, 21 Jul 2024 10:12:58 +0100 Subject: [PATCH] [bluetooth.bluez] fix UnsatisfiedLinkException on Windows (#17107) Signed-off-by: AndrewFG --- .../binding/bluetooth/bluez/internal/DeviceManagerFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.bluetooth.bluez/src/main/java/org/openhab/binding/bluetooth/bluez/internal/DeviceManagerFactory.java b/bundles/org.openhab.binding.bluetooth.bluez/src/main/java/org/openhab/binding/bluetooth/bluez/internal/DeviceManagerFactory.java index e467a507b4..c705e6fdc2 100644 --- a/bundles/org.openhab.binding.bluetooth.bluez/src/main/java/org/openhab/binding/bluetooth/bluez/internal/DeviceManagerFactory.java +++ b/bundles/org.openhab.binding.bluetooth.bluez/src/main/java/org/openhab/binding/bluetooth/bluez/internal/DeviceManagerFactory.java @@ -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; -- 2.47.3