diff --git a/app/node/output/track/tracklist.cpp b/app/node/output/track/tracklist.cpp index 3149d973b..6759d54b5 100644 --- a/app/node/output/track/tracklist.cpp +++ b/app/node/output/track/tracklist.cpp @@ -38,7 +38,7 @@ TrackList::TrackList(Sequence *parent, const Track::Type &type, const QString &t Track *TrackList::GetTrackAt(int index) const { - if (index < track_cache_.size()) { + if (index >= 0 && index < track_cache_.size()) { return track_cache_.at(index); } else { return nullptr;