Fix nil pointer dereference in doesLeaseContainPortGroup#54
Conversation
When a lease has an owner reference to a network that isn't part of the current pool, the poolNetworks map lookup returns nil and the subsequent field access panics. Use a safe two-value map lookup and skip missing entries instead. Add unit tests covering all branches. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
/assign @vr4manta |
|
/approve |
|
/override unit |
|
@vr4manta: Overrode contexts on behalf of vr4manta: unit DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jcpowermac, vr4manta The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/override unit |
1 similar comment
|
/override unit |
|
@jcpowermac: /override requires failed status contexts, check run or a prowjob name to operate on.
Only the following failed contexts/checkruns were expected:
If you are trying to override a checkrun that has a space in it, you must put a double quote on the context. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@jcpowermac: /override requires failed status contexts, check run or a prowjob name to operate on.
Only the following failed contexts/checkruns were expected:
If you are trying to override a checkrun that has a space in it, you must put a double quote on the context. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
84d2010
into
openshift-eng:main
When a lease has an owner reference to a network that isn't part of the current pool, the poolNetworks map lookup returns nil and the subsequent field access panics. Use a safe two-value map lookup and skip missing entries instead. Add unit tests covering all branches.