Skip to content

Commit

Permalink
Fix nil pointer exception in manganelo's Test (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
elboletaire authored Jan 18, 2023
1 parent 81fdfc1 commit 56da83a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions grabber/manganelo.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ func (m *Manganelo) Test() (bool, error) {
}
}

if m.rows == nil {
return false, nil
}

return m.rows.Length() > 0, nil
}

Expand Down

0 comments on commit 56da83a

Please sign in to comment.