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

Avoid passing nil url to registry client #9111

Merged
merged 2 commits into from
Feb 22, 2024
Merged

Avoid passing nil url to registry client #9111

merged 2 commits into from
Feb 22, 2024

Conversation

bdragon
Copy link
Member

@bdragon bdragon commented Feb 22, 2024

We are seeing sorbet runtime exceptions caused by passing a nil argument to a typed method that expects a string. The change proposed in this PR fixes this by avoiding the method call if the argument is nil.

Fixes #9110

@bdragon bdragon requested a review from a team as a code owner February 22, 2024 21:25
@github-actions github-actions bot added the L: dotnet:nuget NuGet packages via nuget or dotnet label Feb 22, 2024
@JamieMagee JamieMagee added the sorbet 🍦 Relates to Sorbet types label Feb 22, 2024
@bdragon bdragon merged commit f72194a into main Feb 22, 2024
69 checks passed
@bdragon bdragon deleted the bdragon/iss-9110 branch February 22, 2024 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: dotnet:nuget NuGet packages via nuget or dotnet sorbet 🍦 Relates to Sorbet types
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dependabot::Sorbet::Runtime::InformationalError: Parameter 'url': Expected type String, got type NilClass
3 participants