mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +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:
parent
a0d9357e4e
commit
8e2236bf2c
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# 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)
|
- bugfix: 70_ONKYO_AVR: fixed command for previous title (thx Fusssel)
|
||||||
- feature: 70_ONKYO_AVR: introduced 'set rawCommand'
|
- feature: 70_ONKYO_AVR: introduced 'set rawCommand'
|
||||||
- change: 98_todoist: removed Attribute "sortTasks" / better commandref
|
- change: 98_todoist: removed Attribute "sortTasks" / better commandref
|
||||||
|
@ -866,7 +866,8 @@ sub ResponseProcessing($$$) {
|
|||||||
and scalar( @{$decode_json} ) > 0
|
and scalar( @{$decode_json} ) > 0
|
||||||
and $endpoint eq 'list'
|
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 scalar( @{ $decode_json->{scanResults} } ) > 0
|
||||||
and $endpoint eq 'info' )
|
and $endpoint eq 'info' )
|
||||||
)
|
)
|
||||||
@ -1336,7 +1337,7 @@ sub ParseJSON($$) {
|
|||||||
],
|
],
|
||||||
"release_status": "under develop",
|
"release_status": "under develop",
|
||||||
"license": "GPL_2",
|
"license": "GPL_2",
|
||||||
"version": "v1.9.14",
|
"version": "v1.9.15",
|
||||||
"x_apiversion": "1.9",
|
"x_apiversion": "1.9",
|
||||||
"author": [
|
"author": [
|
||||||
"Marko Oldenburg <leongaultier@gmail.com>"
|
"Marko Oldenburg <leongaultier@gmail.com>"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user