From 20ae47e5ff53f0e2de82d75f2ae56886c974f23c Mon Sep 17 00:00:00 2001 From: chris48s Date: Sat, 2 Nov 2024 09:50:34 +0000 Subject: [PATCH] cleanly handle null or undefined result from jsonpath-plus (#10645) --- services/dynamic/json-path.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/dynamic/json-path.js b/services/dynamic/json-path.js index 46928fa3b816d..48ebf05d9374c 100644 --- a/services/dynamic/json-path.js +++ b/services/dynamic/json-path.js @@ -60,7 +60,7 @@ export default superclass => } } - if (!values.length) { + if (!values || !values.length) { throw new InvalidResponse({ prettyMessage: 'no result' }) }