2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 23:06:37 +00:00

check for undefined owserver connection in Find

git-svn-id: https://svn.fhem.de/fhem/trunk@2750 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2013-02-17 13:17:18 +00:00
parent ca5e3e2b72
commit 9b68cf13f6

View File

@ -314,6 +314,7 @@ OWServer_Find($@)
my ($hash,$slave)= @_;
my $owserver= $hash->{fhem}{owserver};
return undef unless(defined($hash->{fhem}{owserver}));
my @dir= split(",",$owserver->dir("/"));
my $path= undef;
for my $entry (@dir) {