Added a null check before checking the flag of an instrument

This commit is contained in:
SeleDreams
2021-03-04 19:58:03 +01:00
committed by Johannes Lorenz
parent 7aa30c4ecc
commit 00ac4f58f5

View File

@@ -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 );
}