Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix NRE when custom rules omit optional properties in diagnostics#1715

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JamesWTruher merged 3 commits intoPowerShell:masterfromrjmholt:customrule-fix-nre
Sep 28, 2021

Conversation

@rjmholt
Copy link
Contributor

PR Summary

Fixes#1714.

These changes allow custom rules to emit diagnostics (or PSObjects that turn into diagnostics) with optional properties unset.

PR Checklist

Copy link
Collaborator

@bergmeisterbergmeister left a comment

Choose a reason for hiding this comment

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

Looks good, only suggestion is to replace hard-coded property names with code references using things like e.g.nameof. Also, should we try to make the property query case insensitive for the property name itself as I think at the moment it'd be case sensitive

rjmholt reacted with thumbs up emoji
@JamesWTruherJamesWTruher merged commita42ab5f intoPowerShell:masterSep 28, 2021
@rjmholtrjmholt deleted the customrule-fix-nre branchNovember 20, 2021 00:52
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@bergmeisterbergmeisterbergmeister approved these changes

+1 more reviewer

@JamesWTruherJamesWTruherJamesWTruher approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Custom rules that don't supply optional properties cause null dereference

3 participants

@rjmholt@bergmeister@JamesWTruher

[8]ページ先頭

©2009-2025 Movatter.jp