2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 20:57:11 +00:00

73_NUKIBridge: fix FHEM crashed if json empty Array

git-svn-id: https://svn.fhem.de/fhem/trunk@20984 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
LeonGaultier 2020-01-15 05:54:55 +00:00
parent a0d9357e4e
commit 8e2236bf2c
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 73_NUKIBridge: fix FHEM crashed if json empty Array
- bugfix: 70_ONKYO_AVR: fixed command for previous title (thx Fusssel)
- feature: 70_ONKYO_AVR: introduced 'set rawCommand'
- change: 98_todoist: removed Attribute "sortTasks" / better commandref

View File

@ -866,7 +866,8 @@ sub ResponseProcessing($$$) {
and scalar( @{$decode_json} ) > 0
and $endpoint eq 'list'
)
or ( ref( $decode_json->{scanResults} ) eq 'ARRAY'
or ( ref($decode_json) eq 'HASH'
and ref( $decode_json->{scanResults} ) eq 'ARRAY'
and scalar( @{ $decode_json->{scanResults} } ) > 0
and $endpoint eq 'info' )
)
@ -1336,7 +1337,7 @@ sub ParseJSON($$) {
],
"release_status": "under develop",
"license": "GPL_2",
"version": "v1.9.14",
"version": "v1.9.15",
"x_apiversion": "1.9",
"author": [
"Marko Oldenburg <leongaultier@gmail.com>"