]> dxcluster.org Git - spider.git/commitdiff
cheat for now
authorminima <minima>
Sat, 9 Jun 2001 23:09:41 +0000 (23:09 +0000)
committerminima <minima>
Sat, 9 Jun 2001 23:09:41 +0000 (23:09 +0000)
perl/DXProt.pm

index 394f7cf1e8b2d061334e57cf86fecb79a6b923dc..875d2b6694314691dd9b219ae03401227870bfdd 100644 (file)
@@ -1720,8 +1720,12 @@ sub send_route
        if ($self->{routefilter}) {
                for (; @_ && $no; $no--) {
                        my $r = shift;
-                       ($filter, $hops) = $self->{routefilter}->it($self->{call}, $self->{dxcc}, $self->{itu}, $self->{cq}, $r->call, $r->dxcc, $r->itu, $r->cq);
-                       push @rin, $r if $filter;
+                       if ($r) {
+                               ($filter, $hops) = $self->{routefilter}->it($self->{call}, $self->{dxcc}, $self->{itu}, $self->{cq}, $r->call, $r->dxcc, $r->itu, $r->cq);
+                               push @rin, $r if $filter;
+                       } else {
+                               dbg('chan', "was sent a null value");
+                       }
                }
        }
        if (@rin) {