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

NullsafeMethodCall makes the variable not null for the rest of the scope #5771

Merged
merged 1 commit into from May 14, 2021

Conversation

orklah
Copy link
Collaborator

@orklah orklah commented May 14, 2021

This PR fixes #5734

It adds an assertion !null when using a NullsafeMethodCall on a variable

@muglug muglug merged commit 1bb4a05 into vimeo:master May 14, 2021
@muglug
Copy link
Collaborator

muglug commented May 14, 2021

Thanks!

@orklah orklah deleted the Assert-NotNull-for-nullsafemethodcall branch September 14, 2021 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

False positive: Cannot call method [] on possibly null value when using ?->
2 participants