From 00ac4f58f50d67b79ad805ec11f1fb507962b2b6 Mon Sep 17 00:00:00 2001 From: SeleDreams Date: Thu, 4 Mar 2021 19:58:03 +0100 Subject: [PATCH] Added a null check before checking the flag of an instrument --- src/core/NotePlayHandle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/NotePlayHandle.cpp b/src/core/NotePlayHandle.cpp index a80b8f0c8..22ac6d2af 100644 --- a/src/core/NotePlayHandle.cpp +++ b/src/core/NotePlayHandle.cpp @@ -106,7 +106,7 @@ NotePlayHandle::NotePlayHandle( InstrumentTrack* instrumentTrack, m_instrumentTrack->midiNoteOn( *this ); } - if( m_instrumentTrack->instrument()->flags() & Instrument::IsSingleStreamed ) + if(m_instrumentTrack->instrument() && m_instrumentTrack->instrument()->flags() & Instrument::IsSingleStreamed ) { setUsesBuffer( false ); }