Skip to content
Snippets Groups Projects
Commit 05b647d4 authored by Lorenz Meier's avatar Lorenz Meier
Browse files

Protect against uninitialized data

parent 914eeb95
Branches
No related tags found
No related merge requests found
......@@ -50,6 +50,10 @@ void QGCHilXPlaneConfiguration::setVersion(int version)
void QGCHilXPlaneConfiguration::toggleSimulation(bool connect)
{
if (!link) {
return;
}
Q_UNUSED(connect);
if (!link->isConnected())
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment