Skip to content

Commit

Permalink
fix potential nil pointer error
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpedrie committed Mar 17, 2021
1 parent d1079a5 commit da225d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extract_comic.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (e extractComic) findBestImage(a *Article) bool {
eImgs.run(a)
a.TopNode = nil

if a.Img != nil {
if a.Img != nil && a.Img.Sel != nil {
return e.setImage(a, a.Img.Sel)
}

Expand Down

0 comments on commit da225d0

Please sign in to comment.