Fixed a silly null pointer dereference in TrackListView related to

auto-scrolling behavior.
This commit is contained in:
casey langen 2016-10-03 23:50:06 -07:00
parent 3476c7b2ed
commit 6dbde108f7

View File

@ -123,7 +123,7 @@ void TrackListView::Clear() {
}
void TrackListView::ScrollToPlaying() {
if (this->playing) {
if (this->playing && this->metadata) {
DBID id = this->playing->Id();
for (size_t i = 0; i < this->metadata->Count(); i++) {
if (this->metadata->GetId(i) == id) {