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

Exception on empty text #5

Open
garak opened this issue May 14, 2019 · 1 comment
Open

Exception on empty text #5

garak opened this issue May 14, 2019 · 1 comment

Comments

@garak
Copy link

garak commented May 14, 2019

It looks like truncateWords is throwing an exception when text is empty.

Type error: Argument 1 passed to DOMWordsIterator::__construct() must be an instance of DOMNode, null given

called in line 65

It would be nice to avoid such situation, maybe with an additional control

@dstorozhuk
Copy link

same error in truncateLetters()

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