Commit 05b647d4 authored by Lorenz Meier's avatar Lorenz Meier

Protect against uninitialized data

parent 914eeb95
......@@ -50,6 +50,10 @@ void QGCHilXPlaneConfiguration::setVersion(int version)
void QGCHilXPlaneConfiguration::toggleSimulation(bool connect)
{
if (!link) {
return;
}
Q_UNUSED(connect);
if (!link->isConnected())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment