Commit 0bcddf9a authored by Gus Grubba's avatar Gus Grubba Committed by Gus Grubba

CP - Check if qgcApp() actually exists before using it.

parent 8dca2cd4
......@@ -472,7 +472,7 @@ VideoReceiver::start()
void
VideoReceiver::stop()
{
if(qgcApp()->runningUnitTests()) {
if(qgcApp() && qgcApp()->runningUnitTests()) {
return;
}
#if defined(QGC_GST_STREAMING)
......
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