mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[miio] avoid IndexOutOfBoundsException exception (#8587)
In case of the parameters & response are not equal avoid the java.lang.IndexOutOfBoundsException: Index: 4, Size: 4 Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
This commit is contained in:
parent
fe7b176cb7
commit
d716d03787
@ -426,6 +426,7 @@ public class MiIoBasicHandler extends MiIoAbstractHandler {
|
||||
if (res.size() != para.size()) {
|
||||
logger.debug("Unexpected size different. Request size {}, response size {}. (Req: {}, Resp:{})",
|
||||
para.size(), res.size(), para, res);
|
||||
return;
|
||||
}
|
||||
for (int i = 0; i < para.size(); i++) {
|
||||
// This is a miot parameter
|
||||
|
Loading…
Reference in New Issue
Block a user