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

Uncaught TypeError: Cannot call method 'toString' of null #49

Closed
jona opened this issue Sep 27, 2013 · 1 comment
Closed

Uncaught TypeError: Cannot call method 'toString' of null #49

jona opened this issue Sep 27, 2013 · 1 comment

Comments

@jona
Copy link

jona commented Sep 27, 2013

I assigned field using: lunr.Index.prototype.field()

Then I call this function: lunr.Index.prototype.add()

And one of the fields is null, i get this error. Shouldn't it know if the field is null and exclude it from the the index?

Thanks!

@olivernn
Copy link
Owner

Thanks for reporting this, I've just created a new release, 0.4.3, which includes a fix for this issue.

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