Skip to content

Commit

Permalink
Update config/groovy/common.groovy
Browse files Browse the repository at this point in the history
Co-authored-by: BenjaminAmos <[email protected]>
  • Loading branch information
Cervator and BenjaminAmos authored Nov 3, 2021
1 parent 0d47b8d commit 31d4621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/groovy/common.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ class common {
}
currentPageUrl = getLink(connection, "next")
// TODO: This comparison is vulnerable to a page request size of "100" or anything that starts with a 1, but just using 99 above ..
if (currentPageUrl.contains("page=1")) {
if (currentPageUrl != null && currentPageUrl.contains("page=1")) {
//println "The pagination warped back to page 1, we're done!"
currentPageUrl = null
}
Expand Down

0 comments on commit 31d4621

Please sign in to comment.