Skip to content

Fix NullReferenceException in CompletionCompleters public methods - #11274

Merged
Ilya (iSazonov) merged 1 commit into
PowerShell:masterfrom
daxian-dbw:nullex
Dec 10, 2019
Merged

Ilya (iSazonov) merged 1 commit into
PowerShell:masterfrom
daxian-dbw:nullex

Conversation

@daxian-dbw

@daxian-dbw Dongbo Wang (daxian-dbw) commented Dec 5, 2019 •

Copy link
Copy Markdown
Member

PR Summary

Fix #11227, NullReferenceException in CompletionCompleters public methods:

[CompletionCompleters]::CompleteType(string typeName)
[CompletionCompleters]::CompleteVariable(string variableName)

PR Context

PR Checklist

@ghost ghost assigned Ilya (iSazonov) Dec 5, 2019
@daxian-dbw Dongbo Wang (daxian-dbw) added the CL-Engine Indicates that a PR should be marked as an engine change in the Change Log label Dec 6, 2019
@vexx32

Copy link
Copy Markdown
Collaborator

Dongbo Wang (@daxian-dbw) nice work! Any chance this might make it in for 7.0 GA timeframe? It doesn't feel right to be shipping a major version with an NRE from a public API. 😄

@iSazonov

Copy link
Copy Markdown
Collaborator

It seems the public API was never used because it did not work :-)

@daxian-dbw

Copy link
Copy Markdown
Member Author

Rain Sallow (/u/ta11ow) (@vexx32) I feel the same :) Changed the milestone to rc1-consider and wait for triage.

@iSazonov

Copy link
Copy Markdown
Collaborator

Travis Plunk (@TravisEz13) Paul Higinbotham (@PaulHigin) Please look the change in public API.

@SteveL-MSFT

Copy link
Copy Markdown
Member

This also fails on WinPS5.1 so it's not a regression. It's not clear to me outside of calling the API the user experience that is broken.

@ghost

Copy link
Copy Markdown

🎉v7.0.0-rc.1 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-Engine Indicates that a PR should be marked as an engine change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[System.Management.Automation.CompletionCompleters]::CompleteVariable throw ArgumentNullException

6 participants