Skip to content

Fix left outer join - null reference exception issue #46939

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

Merged
merged 1 commit into from
Jun 25, 2025

Conversation

valentincpopa
Copy link
Contributor

Summary

Added the null conditional operator and the null-coalescing operator similarly to what is presented in the query syntax in order to prevent the snippet from throwing a null reference exception when a student is assigned to a department that does not exist.

Fixes #46938

@valentincpopa valentincpopa requested review from BillWagner and a team as code owners June 24, 2025 22:47
@dotnetrepoman dotnetrepoman bot added this to the June 2025 milestone Jun 24, 2025
@dotnet-policy-service dotnet-policy-service bot added dotnet-csharp/svc csharp-linq/subsvc community-contribution Indicates PR is created by someone from the .NET community. labels Jun 24, 2025
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

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

Thanks @valentincpopa

This LGTM. I'll :shipit: as soon as the build finishes.

@BillWagner BillWagner enabled auto-merge (squash) June 25, 2025 12:55
@BillWagner BillWagner merged commit 6691b72 into dotnet:main Jun 25, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution Indicates PR is created by someone from the .NET community. csharp-linq/subsvc dotnet-csharp/svc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Left outer join method syntax throws a null reference exception - join operators documentation
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy