Handling a NPE

This commit is contained in:
Deluan 2016-03-04 19:49:51 -05:00
parent 8ff1a94d75
commit 0b6093ce5d

View File

@ -163,6 +163,7 @@ func hasCoverArt(path string) bool {
m, err := tag.ReadFrom(f)
if err != nil {
beego.Warn("Error reading tag from file", path, "-", err)
return false
}
return m.Picture() != nil
}