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 7f8aa269a2
commit d3878d596d

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) {