Skip to content

Fix UAST unmarshal for empty strings#256

Merged
carlosms merged 1 commit intosrc-d:masterfrom
carlosms:uast-empty-str
Oct 5, 2018
Merged

Fix UAST unmarshal for empty strings#256
carlosms merged 1 commit intosrc-d:masterfrom
carlosms:uast-empty-str

Conversation

@carlosms
Copy link
Copy Markdown
Contributor

@carlosms carlosms commented Oct 4, 2018

Fix #255.

For empty strings UnmarshalUAST does not return an error, it returns nil, nil.

@carlosms carlosms requested a review from smola October 4, 2018 13:14
Copy link
Copy Markdown

@smola smola left a comment

Choose a reason for hiding this comment

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

Test?

@carlosms
Copy link
Copy Markdown
Contributor Author

carlosms commented Oct 4, 2018

Test added, squashed into one commit.

@carlosms
Copy link
Copy Markdown
Contributor Author

carlosms commented Oct 4, 2018

I forgot about the export handler :/
Second commit contains a fix and test for it also.

Signed-off-by: Carlos Martín <carlos.martin.sanchez@gmail.com>
@carlosms carlosms merged commit 687e5df into src-d:master Oct 5, 2018
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