fix another possible(?) error on broadcast p92 update
[spider.git] / perl / DXProt.pm
index ea41c08317e98bb1477d7ecaa6213b01c7bc7140..e4e0aa49db77409adf7ee3cb097dffbf492f2ec7 100644 (file)
@@ -893,6 +893,10 @@ sub broadcast_pc92_update
        dbg("ROUTE: broadcast_pc92_update $call") if isdbg('obscount');
 
        my $nref = Route::Node::get($call);
+       unless ($nref) {
+               dbg("ERROR: broadcast_pc92_update - Route::Node $call disappeared");
+               return;
+       }
        my $l = $nref->last_PC92C(gen_my_pc92_config($nref));
        $main::me->broadcast_route_pc9x($main::mycall, undef, $l, 0);
        $self->update_pc92_next($pc92_update_period);