-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Check if array elements exist before using them #23645
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
Conversation
MorrisJobke
left a comment
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.
code makes sense 👍
6039965 to
3b26178
Compare
|
I amended your commit, because there was one additional space behind the if statement. |
|
Looks similar to #23591 🤔 |
3b26178 to
47c60a1
Compare
It seems that in some recent upgrade here. Not always the entries we expect are returned. So we should first check if they exist. As to not spam the log. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
47c60a1 to
b7be09a
Compare
Did it again, because you overwrote it 😝 |
|
/backport to stable20 |
|
/backport to stable19 |
|
/backport to stable18 |
It seems that in some recent upgrade here. Not always the entries we
expect are returned. So we should first check if they exist. As to not
spam the log.
Signed-off-by: Roeland Jago Douma roeland@famdouma.nl