Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanly handle null or undefined result from jsonpath-plus in [dynamic] badges #10645

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chris48s
Copy link
Member

Resolves https://shields.sentry.io/issues/6027856222

I don't have an example of an input that reduces this behaviour, but it looks like there is some circumstance in which jp() returns undefined. Lets handle this cleanly instead of throwing an unhandled runtime exception.

@chris48s chris48s added bug Bugs in badges and the frontend service-badge New or updated service badge labels Oct 30, 2024
@chris48s chris48s changed the title cleanly handle null or undefined result from jsonpath-plus in [dynamic] badge cleanly handle null or undefined result from jsonpath-plus in [dynamic] badges Oct 30, 2024
Copy link
Contributor

Messages
📖 ✨ Thanks for your contribution to Shields, @chris48s!

Generated by 🚫 dangerJS against d94f15e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs in badges and the frontend service-badge New or updated service badge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants