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

[BUGFIX] Allow importing empty CSV table #560

Merged
merged 1 commit into from
Apr 9, 2024
Merged

[BUGFIX] Allow importing empty CSV table #560

merged 1 commit into from
Apr 9, 2024

Conversation

lolli42
Copy link
Member

@lolli42 lolli42 commented Apr 9, 2024

When importing a .csv with a table definition and
no rows, a warning is raised: DataSet->getElements() may return null, and this fails in the foreach in
DataSet->import(). It is more clean to return an
empty array in getElements(), which is done with
the patch.

When importing a .csv with a table definition and
no rows, a warning is raised: DataSet->getElements()
may return null, and this fails in the foreach in
DataSet->import(). It is more clean to return an
empty array in getElements(), which is done with
the patch.
@lolli42 lolli42 merged commit 3f1f220 into main Apr 9, 2024
6 checks passed
@lolli42 lolli42 deleted the lolli-1 branch April 9, 2024 11:51
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