Skip to content

Don't break when values are null #20

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

Merged
merged 3 commits into from
Aug 5, 2019

Conversation

davidLeonardi
Copy link
Contributor

Some values can be empty, which leaves them with a null value.

For example, 'n.notHere' will be null.

Now, running .toString on null throws an error.
This fix mitigates the error.

Yet I'm unsure what the return type should be in case of a null value. null? an empty string? Please advise!

running .toString on null throws an error. This mitigates the error.

I'm unsure what the return type should be in case of a null value. null? an empty string? Please advise!
@gkorland gkorland requested a review from DvirDukhan June 13, 2019 12:27
Copy link
Contributor

@DvirDukhan DvirDukhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return null

Copy link
Contributor

@DvirDukhan DvirDukhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidLeonardi please add/modify unit tests with this change

DvirDukhan added a commit that referenced this pull request Aug 5, 2019
DvirDukhan
DvirDukhan previously approved these changes Aug 5, 2019
@gkorland gkorland merged commit d91d95e into RedisGraph:master Aug 5, 2019
DvirDukhan added a commit that referenced this pull request Aug 5, 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.

3 participants