From 6a5ce56f73d4df6f841324eca08b79c0792f4cc2 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sat, 12 Jan 2019 15:56:46 -0800 Subject: [PATCH] Qt: AudioProcessor::m_context can be null --- src/platform/qt/AudioProcessor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/qt/AudioProcessor.h b/src/platform/qt/AudioProcessor.h index 1e232bd99..8043ad21c 100644 --- a/src/platform/qt/AudioProcessor.h +++ b/src/platform/qt/AudioProcessor.h @@ -50,7 +50,7 @@ public slots: virtual void requestSampleRate(unsigned) = 0; protected: - mCoreThread* input() { return m_context->thread(); } + mCoreThread* input() { return m_context ? m_context->thread() : nullptr; } private: std::shared_ptr m_context;