Skip to content

Commit

Permalink
cleanly handle null or undefined result from jsonpath-plus (badges#10645
Browse files Browse the repository at this point in the history
)
  • Loading branch information
chris48s authored Nov 2, 2024
1 parent 6243039 commit 20ae47e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/dynamic/json-path.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default superclass =>
}
}

if (!values.length) {
if (!values || !values.length) {
throw new InvalidResponse({ prettyMessage: 'no result' })
}

Expand Down

0 comments on commit 20ae47e

Please sign in to comment.