Skip to content

Add null check because AsNeeded parameter in ConvertTo-Csv and ExportTo-Csv cmdlets needs to analyze a value before quoting. - #12281

Merged
Andrew (anmenaga) merged 1 commit into
PowerShell:masterfrom
iSazonov:csv-nre
Apr 8, 2020
Merged

Andrew (anmenaga) merged 1 commit into
PowerShell:masterfrom
iSazonov:csv-nre

Conversation

@iSazonov

@iSazonov Ilya (iSazonov) commented Apr 8, 2020 •

Copy link
Copy Markdown
Collaborator

PR Summary

Fix #12279.

Add null check because AsNeeded parameter in ConvertTo-Csv and ExportTo-Csv cmdlets needs to analyze a value before quoting.

PR Context

PR Checklist

@iSazonov Ilya (iSazonov) added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Apr 8, 2020
@TravisEz13 Travis Plunk (TravisEz13) changed the title Fix NRE in csv commands Add null check because AsNeeded parameter in ConvertTo-Csv and ExportTo-Csv cmdlets needs to analyze a value before quoting. Apr 8, 2020
@anmenaga
Andrew (anmenaga) merged commit b1e9980 into PowerShell:master Apr 8, 2020
@iSazonov
Ilya (iSazonov) deleted the csv-nre branch April 9, 2020 03:19
@ghost

Copy link
Copy Markdown

🎉v7.1.0-preview.2 has been released which incorporates this pull request.:tada:

Handy links:

@ghost

Copy link
Copy Markdown

🎉v7.0.1 has been released which incorporates this pull request.:tada:

Handy links:

John Dennis (silijon) pushed a commit to SkyKick/PowerShell that referenced this pull request Jul 2, 2020
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ConvertTo-Csv and Export-Csv fail when -usequotes asneeded option is used and input object has null properties

4 participants