Add null safety for branch protection
What does this MR do and why?
A tiny change to avoid potential problems if branch protection is not defined for a branch rule.
Screenshots or screen recordings
N/A
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.