]> git.basschouten.com Git - openhab-addons.git/commitdiff
[bluetooth.bluez] fix UnsatisfiedLinkException on Windows (#17107)
authorAndrew Fiddian-Green <software@whitebear.ch>
Sun, 21 Jul 2024 09:12:58 +0000 (10:12 +0100)
committerGitHub <noreply@github.com>
Sun, 21 Jul 2024 09:12:58 +0000 (11:12 +0200)
Signed-off-by: AndrewFG <software@whitebear.ch>
bundles/org.openhab.binding.bluetooth.bluez/src/main/java/org/openhab/binding/bluetooth/bluez/internal/DeviceManagerFactory.java

index e467a507b45fd8bfe99c4fbef1ac10e5d477502b..c705e6fdc283163ada2606a6a8aed7ce79442374 100644 (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;