diff --git a/lib/rules/metadata/profile.js b/lib/rules/metadata/profile.js index 0ef972bc2..7db3f78bc 100644 --- a/lib/rules/metadata/profile.js +++ b/lib/rules/metadata/profile.js @@ -72,7 +72,7 @@ export async function check(sr, done) { // implementation report if (['CR', 'CRD', 'PR', 'REC'].indexOf(id) > -1) { const dts = sr.extractHeaders(); - if (dts.Implementation) { + if (dts.Implementation?.dd?.querySelector('a')) { meta.implementationReport = dts.Implementation.dd.querySelector('a').href; }