diff --git a/examples/Assets/DSPDemos_Common.h b/examples/Assets/DSPDemos_Common.h index 841a7c7665..5fb76707e9 100644 --- a/examples/Assets/DSPDemos_Common.h +++ b/examples/Assets/DSPDemos_Common.h @@ -308,7 +308,11 @@ struct DSPDemo : public AudioSource, void getNextAudioBlock (const AudioSourceChannelInfo& bufferToFill) override { - jassert (bufferToFill.buffer != nullptr); + if (bufferToFill.buffer == nullptr) + { + jassertfalse; + return; + } inputSource->getNextAudioBlock (bufferToFill);