diff --git a/src/core/song.cpp b/src/core/song.cpp index dc75b5351..79b81358c 100644 --- a/src/core/song.cpp +++ b/src/core/song.cpp @@ -287,7 +287,7 @@ void Song::InitFromFile(const QString& filename, int directory_id) { ParseOggTag(file->xiphComment()->fieldListMap(), codec, &disc, &compilation); } d->comment_ = Decode(tag->comment(), codec); - } else { + } else if (tag) { d->comment_ = Decode(tag->comment(), codec); }