Skip to content

Commit

Permalink
Fix crash at track adding: don't play instrumentTracks when instrumen…
Browse files Browse the repository at this point in the history
…t is null
  • Loading branch information
diizy committed Aug 16, 2014
1 parent f2eca0a commit 7a7c7c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tracks/InstrumentTrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ void InstrumentTrack::removeMidiPortNode( DataFile & _dataFile )
bool InstrumentTrack::play( const MidiTime & _start, const fpp_t _frames,
const f_cnt_t _offset, int _tco_num )
{
if( ! tryLock() )
if( ! tryLock() || ! m_instrument )
{
return false;
}
Expand Down

0 comments on commit 7a7c7c9

Please sign in to comment.