Skip to content

Bug fixes#14

Closed
vishakha041 wants to merge 2 commits intodevelopfrom
bug-fixes
Closed

Bug fixes#14
vishakha041 wants to merge 2 commits intodevelopfrom
bug-fixes

Conversation

@vishakha041
Copy link
Copy Markdown
Contributor

Minor fixes to be consistent with API expectations.


int node_ref = get_value<int>(cmd, "_ref",
query.get_available_reference());
int node_ref = get_value<int>(cmd, "_ref", -1);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this is not right. if link is present (if true on line 167), the node_ref will be -1 if the user did not set _ref.
In other words, if the user does not use _ref and does use link, it will fail.

One possible way to make it right would be to move the link if statement (line 167) up, and based on that set the node_ref.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point. I will address that and push new version.

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