mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[bluetooth.bluez] fix UnsatisfiedLinkException on Windows (#17107)
Signed-off-by: AndrewFG <software@whitebear.ch> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
2a6a09b803
commit
36aaa5488d
@ -81,7 +81,7 @@ public class DeviceManagerFactory {
|
|||||||
// Exception caused by first call to the library
|
// Exception caused by first call to the library
|
||||||
try {
|
try {
|
||||||
return DeviceManager.createInstance(false);
|
return DeviceManager.createInstance(false);
|
||||||
} catch (DBusException ex) {
|
} catch (DBusException | UnsatisfiedLinkError ex) {
|
||||||
// we might be on a system without DBus, such as macOS or Windows
|
// we might be on a system without DBus, such as macOS or Windows
|
||||||
logger.debug("Failed to initialize DeviceManager: {}", ex.getMessage());
|
logger.debug("Failed to initialize DeviceManager: {}", ex.getMessage());
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user