Skip to content

Commit

Permalink
Fix error on missing bug reports (#2781)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-lison authored Sep 15, 2024
1 parent 800340f commit bbf246e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/build-home-index.R
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ data_home_sidebar_links <- function(pkg = ".") {
links <- config_pluck(pkg, "home.links")

bug_reports <- pkg$desc$get_field("BugReports", default = NULL)
if (grepl("@", bug_reports) && !startsWith(bug_reports, "http")) {
if (!is.null(bug_reports) && grepl("@", bug_reports) && !startsWith(bug_reports, "http")) {
bug_reports <- paste0("mailto:", bug_reports)
}

Expand Down

0 comments on commit bbf246e

Please sign in to comment.