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

DataFormatMatcher#getMatchedFormatName throws NPE when no match exists #592

Closed
sleberknight opened this issue Jan 9, 2020 · 1 comment
Closed
Milestone

Comments

@sleberknight
Copy link
Contributor

When there is not a match in DataFormatMatcher, the _match field is null, which causes DataFormatMatcher#getMatchedFormatName to throw a NPE.

Submitted pull request #591 for your consideration, which just updates the code to match what the javadoc says, and added tests.

@cowtowncoder
Copy link
Member

Thank you for reporting this & contributing possible fix! I hope to look into this soon; sounds like legit improvement.

cowtowncoder added a commit that referenced this issue Jan 10, 2020
@cowtowncoder cowtowncoder added this to the 2.10.3 milestone Jan 10, 2020
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

No branches or pull requests

2 participants