diff --git a/sw/ground_segment/cockpit/cockpit.pl b/sw/ground_segment/cockpit/cockpit.pl index 84c1478391..83246f4039 100755 --- a/sw/ground_segment/cockpit/cockpit.pl +++ b/sw/ground_segment/cockpit/cockpit.pl @@ -123,7 +123,7 @@ sub on_foo { sub ivy_on_selected { my ($sender_name, $msg_class, $msg_name, $fields, $self) = @_; print "in ivy_on_selected\n"; # if (COCKPIT_DEBUG); - $self->select_ac($fields->{aicraft_id}); + $self->select_ac($fields->{aicraft_id}) if defined $self->{aircrafts_manager}->get_aircraft_by_id($ac_id); } sub on_aircraft_selection {