mirror of
https://github.com/danieldemus/openhab-addons
synced 2026-07-27 19:50:36 +02:00
Fix NoSuchElementException during initialization (#18578)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
+7
@@ -244,6 +244,13 @@ public class BlueGigaBridgeHandler extends AbstractBluetoothBridgeHandler<BlueGi
|
||||
closeSerialPort(sp);
|
||||
}
|
||||
});
|
||||
|
||||
if (inputStream.isEmpty() || outputStream.isEmpty()) {
|
||||
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR,
|
||||
"Serial Error: Communication stream not available");
|
||||
throw new RetryException(INITIALIZATION_INTERVAL_SEC, TimeUnit.SECONDS);
|
||||
}
|
||||
|
||||
return sp;
|
||||
} catch (PortInUseException e) {
|
||||
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.OFFLINE.CONFIGURATION_ERROR,
|
||||
|
||||
Reference in New Issue
Block a user