Skip to content

Commit 2ba2225

Browse files
authored
[bluetooth.bluez] fix UnsatisfiedLinkException on Windows (openhab#17107)
Signed-off-by: AndrewFG <[email protected]>
1 parent 90dced7 commit 2ba2225

File tree

1 file changed

+1
-1
lines changed
  • bundles/org.openhab.binding.bluetooth.bluez/src/main/java/org/openhab/binding/bluetooth/bluez/internal

1 file changed

+1
-1
lines changed

bundles/org.openhab.binding.bluetooth.bluez/src/main/java/org/openhab/binding/bluetooth/bluez/internal/DeviceManagerFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public void initialize() {
8181
// Exception caused by first call to the library
8282
try {
8383
return DeviceManager.createInstance(false);
84-
} catch (DBusException ex) {
84+
} catch (DBusException | UnsatisfiedLinkError ex) {
8585
// we might be on a system without DBus, such as macOS or Windows
8686
logger.debug("Failed to initialize DeviceManager: {}", ex.getMessage());
8787
return null;

0 commit comments

Comments
 (0)