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

issues adding null values to document #14

Open
ankitkhedekar opened this issue May 26, 2017 · 0 comments
Open

issues adding null values to document #14

ankitkhedekar opened this issue May 26, 2017 · 0 comments

Comments

@ankitkhedekar
Copy link

When I try to update a document with one of its field as null, I get the following error stack trace:

TypeError: Cannot read property 'replace' of null
    at Object.escapeXML (C:\project\node_modules\helios\lib\utils.js:14:15)
    at solrDoc.toXML (C:\project\node_modules\helios\lib\document.js:179:23)
    at solrClient.addDoc (C:\project\node_modules\helios\lib\client.js:127:36)

It seems to be an issue because the escapeXML gets called on null values as well.

Can we skip this escaping step for null values or make the escapeXML function to handle null values differently?

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

1 participant