Skip to content

Commit

Permalink
cleanly handle null or undefined result from jsonpath-plus
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Oct 30, 2024
1 parent 6243039 commit d94f15e
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 d94f15e

Please sign in to comment.