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

Fix panic when parsing empty list #78

Merged
merged 1 commit into from Mar 25, 2017
Merged

Fix panic when parsing empty list #78

merged 1 commit into from Mar 25, 2017

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Mar 25, 2017

Fix #77

If the variable is empty list, reflect.Value length is zero. Because in that case returns empty list of hilast.Variable.
When using empty map, it parses as empty list. However, there is no problem because empty map is never used in Terraform.

@wata727 wata727 merged commit 0c2de24 into master Mar 25, 2017
@wata727 wata727 deleted the fix_empty_list_panic branch March 25, 2017 06:22
bendrucker pushed a commit that referenced this pull request Jun 13, 2023
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant