Skip to content

Commit

Permalink
Insteon: Check if Hop_Array is Defined Before Printing
Browse files Browse the repository at this point in the history
Closes hollie#311
  • Loading branch information
krkeegan committed Nov 12, 2013
1 parent 2cc2620 commit a159c57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Insteon/BaseInsteon.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1877,7 +1877,9 @@ sub log_aldb_status
{
my ($self) = @_;
main::print_log( " Device ID: ".$self->device_id());
main::print_log( " Hop Count: ".$self->default_hop_count()." :: [". join("",@{$$self{hop_array}})."]");
my $hop_array;
$hop_array = join("",@{$$self{hop_array}}) if (defined($$self{hop_array}));
main::print_log( " Hop Count: ".$self->default_hop_count()." :: [$hop_array]");
main::print_log( "Engine Version: ".$self->engine_version());
my $aldb = $self->get_root()->_aldb;
if ($aldb)
Expand Down

0 comments on commit a159c57

Please sign in to comment.