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

Don't try to cast metric registry before it is checked for null #2076

Merged
merged 3 commits into from Sep 15, 2023

Conversation

alsin
Copy link
Contributor

@alsin alsin commented May 24, 2023

This is a fix for #1234 : if metric register was not set up don't try to cast it to Dopwizard's MetricRegistry; however if it was set up, check for a correct type using instanceof before trying casting it.

@lfbayer lfbayer merged commit 2021f90 into brettwooldridge:dev Sep 15, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants