René's URL Explorer Experiment


Title: Fix crash if command sent to pwsh is just whitespace by SteveL-MSFT · Pull Request #10977 · PowerShell/PowerShell · GitHub

Open Graph Title: Fix crash if command sent to pwsh is just whitespace by SteveL-MSFT · Pull Request #10977 · PowerShell/PowerShell

X Title: Fix crash if command sent to pwsh is just whitespace by SteveL-MSFT · Pull Request #10977 · PowerShell/PowerShell

Description: PowerShell for every system! Contribute to PowerShell/PowerShell development by creating an account on GitHub.

Open Graph Description: PR Summary In the early parsing code, a null switchkey can be returned. This isn't expected in later code resulting in an unhandled exception. Fix is to check if switchkey is null before addi...

X Description: PR Summary In the early parsing code, a null switchkey can be returned. This isn't expected in later code resulting in an unhandled exception. Fix is to check if switchkey is null before ...

Opengraph URL: https://github.com/PowerShell/PowerShell/pull/10977

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:398d82fb-05ae-51c4-eb0b-4b80e75a79c6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE486:285430:B7114D:FCAA1B:6AFD41B3
html-safe-nonceed4fa73e0187ca6f62a9cc0a066b6c6302a71a862c2b2e7bbd9230f955d3a8d2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDg2OjI4NTQzMDpCNzExNEQ6RkNBQTFCOjZBRkQ0MUIzIiwidmlzaXRvcl9pZCI6Ijg0OTQ5NDY5NTEwNDc3NTgyNTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb29ea2f0958afb15f39aab047ea7b9d2d945c59f60aa1ec616a7c200cccab698
hovercard-subject-tagpull_request:335858476
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/PowerShell/PowerShell/10977/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/e8bf91e7f51752d9948cf62cf6216f4d94d77332bd265545290b0eb515c8749e/PowerShell/PowerShell/pull/10977
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e8bf91e7f51752d9948cf62cf6216f4d94d77332bd265545290b0eb515c8749e/PowerShell/PowerShell/pull/10977
og:image:altPR Summary In the early parsing code, a null switchkey can be returned. This isn't expected in later code resulting in an unhandled exception. Fix is to check if switchkey is null before addi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSteveL-MSFT
hostnamegithub.com
expected-hostnamegithub.com
Nonebdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474
turbo-cache-controlno-cache
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release556dd37bb0aceffb25724e151b5d858b3265b40b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/pull/10977#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F10977
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F10977
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/pull/10977
Reloadhttps://github.com/PowerShell/PowerShell/pull/10977
Reloadhttps://github.com/PowerShell/PowerShell/pull/10977
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests364 (364)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
https://github.com/PowerShell/PowerShell
Andrew (anmenaga)https://github.com/anmenaga
PowerShell:masterhttps://github.com/PowerShell/PowerShell/tree/master
SteveL-MSFT:pwsh-whitespace-arghttps://github.com/SteveL-MSFT/PowerShell/tree/pwsh-whitespace-arg
Conversationhttps://github.com/PowerShell/PowerShell/pull/10977
Commits2 (2)https://github.com/PowerShell/PowerShell/pull/10977/commits
Checkshttps://github.com/PowerShell/PowerShell/pull/10977/checks
Files changedhttps://github.com/PowerShell/PowerShell/pull/10977/files
Fix crash if command sent to pwsh is just whitespacehttps://github.com/PowerShell/PowerShell/pull/10977#top
Andrew (anmenaga)https://github.com/anmenaga
PowerShell:masterhttps://github.com/PowerShell/PowerShell/tree/master
SteveL-MSFT:pwsh-whitespace-arghttps://github.com/SteveL-MSFT/PowerShell/tree/pwsh-whitespace-arg
https://github.com/SteveL-MSFT
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
Nov 2, 2019https://github.com/PowerShell/PowerShell/pull/10977#issue-516624731
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/10977
#10975https://github.com/PowerShell/PowerShell/issues/10975
PR has a meaningful titlehttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Summarized changeshttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright headerhttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Work in Progresshttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---work-in-progress
Breaking changeshttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes
Experimental feature(s) neededhttps://github.com/MicrosoftDocs/PowerShell-Docs/blob/staging/reference/6/Microsoft.PowerShell.Core/About/about_Experimental_Features.md
Documentation neededhttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Make sure you've added a new test if existing tests do not effectively test the code changedhttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#before-submitting
PowerShell Editor Serviceshttps://github.com/PowerShell/PowerShellEditorServices
PowerShell extensionhttps://github.com/PowerShell/vscode-powershell
PSScriptAnalyzerhttps://github.com/PowerShell/PSScriptAnalyzer
EditorSyntaxhttps://github.com/PowerShell/EditorSyntax
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/10977
https://github.com/SteveL-MSFT
Fix crash if command sent to pwsh is just whitespacehttps://github.com/PowerShell/PowerShell/pull/10977/commits/118a35fc55153c67dc50c266e053e56e77a76252
118a35fhttps://github.com/PowerShell/PowerShell/pull/10977/commits/118a35fc55153c67dc50c266e053e56e77a76252
https://github.com/SteveL-MSFT
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
Rob Holt (rjmholt)https://github.com/rjmholt
November 2, 2019 15:13https://github.com/PowerShell/PowerShell/pull/10977#event-2765317050
https://github.com/SteveL-MSFT
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
Andrew (anmenaga)https://github.com/anmenaga
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
code ownershttps://github.com/PowerShell/PowerShell/blob/70ab772da77d8cc1cbec2e3aa29bd328ff1de589/.github/CODEOWNERS#L36
November 2, 2019 15:13https://github.com/PowerShell/PowerShell/pull/10977#event-2765317051
https://github.com/SteveL-MSFT
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
Andrew (anmenaga)https://github.com/anmenaga
Nov 2, 2019https://github.com/PowerShell/PowerShell/pull/10977#event-2765317058
https://github.com/rjmholt
Rob Holt (rjmholt)https://github.com/rjmholt
Nov 2, 2019 https://github.com/PowerShell/PowerShell/pull/10977#pullrequestreview-310775826
View reviewed changes https://github.com/PowerShell/PowerShell/pull/10977/files/118a35fc55153c67dc50c266e053e56e77a76252
src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cshttps://github.com/PowerShell/PowerShell/pull/10977/files/118a35fc55153c67dc50c266e053e56e77a76252#diff-ecad051c48d5d76681e40007a13d92f2692b281e5e4485d722822e3ec1123718
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/10977
https://github.com/SteveL-MSFT
address Rob's feedbackhttps://github.com/PowerShell/PowerShell/pull/10977/commits/8bb43a51c33aa95700d6406b7ae9716e8971b632
8bb43a5https://github.com/PowerShell/PowerShell/pull/10977/commits/8bb43a51c33aa95700d6406b7ae9716e8971b632
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
Nov 3, 2019 https://github.com/PowerShell/PowerShell/pull/10977#pullrequestreview-310830498
View reviewed changes https://github.com/PowerShell/PowerShell/pull/10977/files/8bb43a51c33aa95700d6406b7ae9716e8971b632
https://github.com/daxian-dbw
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
Nov 4, 2019 https://github.com/PowerShell/PowerShell/pull/10977#pullrequestreview-311286364
View reviewed changes https://github.com/PowerShell/PowerShell/pull/10977/files/8bb43a51c33aa95700d6406b7ae9716e8971b632
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
https://github.com/PowerShell/PowerShell/pull/10977#pullrequestreview-311286364
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/10977
https://github.com/anmenaga
Andrew (anmenaga)https://github.com/anmenaga
CL-General https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3ACL-General
Nov 4, 2019https://github.com/PowerShell/PowerShell/pull/10977#event-2769521320
https://github.com/anmenaga
Andrew (anmenaga)https://github.com/anmenaga
7.0.0-preview.6https://github.com/PowerShell/PowerShell/milestone/74
Nov 4, 2019https://github.com/PowerShell/PowerShell/pull/10977#event-2769521437
https://github.com/anmenaga
Andrew (anmenaga)https://github.com/anmenaga
baf2410https://github.com/PowerShell/PowerShell/commit/baf24102ffd1732a236a0de170d6e6e895a6a58b
Nov 4, 2019https://github.com/PowerShell/PowerShell/pull/10977#event-2769523387
https://github.com/ghost
Deleted user (ghost)https://github.com/ghost
Nov 21, 2019https://github.com/PowerShell/PowerShell/pull/10977#issuecomment-557303450
Release Noteshttps://github.com/PowerShell/PowerShell/releases/tag/v7.0.0-preview.6
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/10977
Nov 21, 2019 https://github.com/PowerShell/PowerShell/pull/10977#ref-issue-516463453
PowerShell can't handle empty commandline parameter #10975 https://github.com/PowerShell/PowerShell/issues/10975
https://github.com/SteveL-MSFT
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
June 6, 2020 02:29https://github.com/PowerShell/PowerShell/pull/10977#event-3414019568
Thatgfsj (Thatgfsj)https://github.com/Thatgfsj
Aug 6, 2026 https://github.com/PowerShell/PowerShell/pull/10977#ref-commit-6ef623e
https://github.com/SteveL-MSFT
Fix crash if command sent to pwsh is just whitespace (https://github.com/Thatgfsj-contribs/PowerShell/commit/6ef623e5e05a26d2be4c576a71babc231b365715
PowerShell#10977https://github.com/PowerShell/PowerShell/pull/10977
)https://github.com/Thatgfsj-contribs/PowerShell/commit/6ef623e5e05a26d2be4c576a71babc231b365715
6ef623ehttps://github.com/Thatgfsj-contribs/PowerShell/commit/6ef623e5e05a26d2be4c576a71babc231b365715
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShell/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F10977
https://github.com/daxian-dbw
Dongbo Wang (daxian-dbw) https://github.com/daxian-dbw
https://github.com/PowerShell/PowerShell/pull/10977/files/8bb43a51c33aa95700d6406b7ae9716e8971b632
https://github.com/iSazonov
Ilya (iSazonov) https://github.com/iSazonov
https://github.com/PowerShell/PowerShell/pull/10977/files/8bb43a51c33aa95700d6406b7ae9716e8971b632
https://github.com/anmenaga
Andrew (anmenaga) https://github.com/anmenaga
https://github.com/rjmholt
Rob Holt (rjmholt) https://github.com/rjmholt
https://github.com/PowerShell/PowerShell/pull/10977/files/8bb43a51c33aa95700d6406b7ae9716e8971b632
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/10977
https://github.com/anmenaga
Andrew (anmenaga) https://github.com/anmenaga
CL-General https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3ACL-General
7.0.0-preview.6 https://github.com/PowerShell/PowerShell/milestone/74
PowerShell can't handle empty commandline parameter https://github.com/PowerShell/PowerShell/issues/10975
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/10977
https://github.com/SteveL-MSFT
https://github.com/daxian-dbw
https://github.com/rjmholt
https://github.com/iSazonov
https://github.com/anmenaga
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.