From 0bcddf9a9876c2f2190fc84e5e53e12667c45663 Mon Sep 17 00:00:00 2001 From: Gus Grubba Date: Thu, 10 Jan 2019 10:45:27 -0500 Subject: [PATCH] CP - Check if qgcApp() actually exists before using it. --- src/VideoStreaming/VideoReceiver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VideoStreaming/VideoReceiver.cc b/src/VideoStreaming/VideoReceiver.cc index f7e52eb68..ed750ce71 100644 --- a/src/VideoStreaming/VideoReceiver.cc +++ b/src/VideoStreaming/VideoReceiver.cc @@ -472,7 +472,7 @@ VideoReceiver::start() void VideoReceiver::stop() { - if(qgcApp()->runningUnitTests()) { + if(qgcApp() && qgcApp()->runningUnitTests()) { return; } #if defined(QGC_GST_STREAMING) -- 2.22.0