From: Andrew Fiddian-Green Date: Sun, 21 Jul 2024 09:12:58 +0000 (+0100) Subject: [bluetooth.bluez] fix UnsatisfiedLinkException on Windows (#17107) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=2ba2225ee92b2492aa418fc22f59b02d1446abce;p=openhab-addons.git [bluetooth.bluez] fix UnsatisfiedLinkException on Windows (#17107) Signed-off-by: AndrewFG --- 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;