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
Perform null check before accessing it #16552
Conversation
Perform the null check on RouteTable.Routes before accessing it with SingleOrDefault.
Thank you for your contribution pregress! We will review the pull request and get back to you soon. |
@pregress Thanks for the contribution! |
Described the change in the changelog. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, src/Network/Network/Generated/RouteTable/Route/AddAzureRmRouteConfigCommand.cs
this file is generated so we probably should not update it manually.
@MikhailTryakhov Hey Mikhail the customer is trying to fix a null-reference exception in the generated code of Network. What's you advice here?
Can somebody point me in the right direction, from where the source code is generated? |
|
fix change log
Please resolve the conflicts |
/azp run azure-powershell - security-tools |
Azure Pipelines successfully started running 1 pipeline(s). |
Description
Perform the null check on RouteTable.Routes before accessing it with SingleOrDefault.
Checklist
CONTRIBUTING.md
ChangeLog.md
file(s) has been updated:ChangeLog.md
file can be found atsrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
## Upcoming Release
header -- no new version header should be added