diff --git a/FHEM/32_withings.pm b/FHEM/32_withings.pm index 12b84fd30..7ea866843 100644 --- a/FHEM/32_withings.pm +++ b/FHEM/32_withings.pm @@ -562,6 +562,8 @@ withings_pollUser($) my $json = (); $json = JSON->new->utf8->decode(encode('UTF-8', $ret)) if( $ret =~ m/^{.*}$/ ); + return undef if( !$json ); + $hash->{status} = $json->{status}; if( $hash->{status} == 0 ) { my $i = 0;