Skip to content

Commit

Permalink
navigator rtl: check pointer before dereferencing
Browse files Browse the repository at this point in the history
  • Loading branch information
MaEtUgR committed Oct 24, 2024
1 parent 929cf0f commit c8ade38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/navigator/rtl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,9 @@ void RTL::init_rtl_mission_type()
break;
}

_rtl_mission_type_handle->initialize();
if (_rtl_mission_type_handle) {
_rtl_mission_type_handle->initialize();
}
}

void RTL::parameters_update()
Expand Down

0 comments on commit c8ade38

Please sign in to comment.