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

Return error on unknown text file encoding #175

Merged
merged 2 commits into from
Mar 10, 2019

Conversation

Konijnendijk
Copy link
Contributor

This PR fixes the case when the encoding detection library cannot detect the file encoding. It will now return an error. I added a test with an empty text file that triggers this case.

Let me know if you have any questions or other remarks!

@dbashford
Copy link
Owner

I'm guessing in the previous case, toLowerCase() would error out?

This looks good. I'll soon be going through issues and PRs looking to get another release out, thanks!

@Konijnendijk
Copy link
Contributor Author

@dbashford That's correct, toLowerCase() would cause a null pointer exception.

@dbashford dbashford merged commit c2660fd into dbashford:master Mar 10, 2019
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.

2 participants