summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extensions/SiteMapIndex/lib/Util.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/SiteMapIndex/lib/Util.pm b/extensions/SiteMapIndex/lib/Util.pm
index 3c322d8c7..b0e4c6eab 100644
--- a/extensions/SiteMapIndex/lib/Util.pm
+++ b/extensions/SiteMapIndex/lib/Util.pm
@@ -46,7 +46,7 @@ sub bug_is_ok_to_index {
my ($bug) = @_;
return 1 unless blessed($bug) && $bug->isa('Bugzilla::Bug');
my $creation_ts = datetime_from($bug->creation_ts);
- return ($creation_ts lt too_young_date()) ? 1 : 0;
+ return ($creation_ts && $creation_ts lt too_young_date()) ? 1 : 0;
}
# We put two things in the Sitemap: a list of Browse links for products,