From 9b42ab7662e12209cba61f4e18d694ae3d80334d Mon Sep 17 00:00:00 2001 From: 7h3Rabbit <62792609+7h3Rabbit@users.noreply.github.com> Date: Sat, 22 Feb 2025 21:08:02 +0100 Subject: [PATCH] added check for undefined --- lib/plugins/pagexray/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/plugins/pagexray/index.js b/lib/plugins/pagexray/index.js index 8f19ce11c..3265752d7 100644 --- a/lib/plugins/pagexray/index.js +++ b/lib/plugins/pagexray/index.js @@ -82,6 +82,8 @@ export default class PageXrayPlugin extends SitespeedioPlugin { firstParty: this.options.firstParty ?? undefined }; const pageSummary = pagexray.convert(message.data, config); + if (!pageSummary) break; + //check and print any http server error > 399 for (let summary of pageSummary) { if (Object.keys(summary.responseCodes).some(code => code > 399)) {