-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Fix NPE when updating settings on managed system indices #67200
Conversation
`expectedValue` can be `null`, so using `Objects.equals` prevents an NPE here.
Pinging @elastic/es-core-infra (Team:Core/Infra) |
I verified that this fixes the issue by reverting #67162 on a branch and applying this fix on top, then reproducing as described in #67147 (as the issue no longer reproduces with those commands when the |
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.
LGTM, thanks for fixing
`expectedValue` can be `null` (and in fact will always be `null` if a key is in `requestedSettings` but not `descriptorSettings`), so using `Objects.equals` prevents an NPE here.
`expectedValue` can be `null` (and in fact will always be `null` if a key is in `requestedSettings` but not `descriptorSettings`), so using `Objects.equals` prevents an NPE here.
`expectedValue` can be `null` (and in fact will always be `null` if a key is in `requestedSettings` but not `descriptorSettings`), so using `Objects.equals` prevents an NPE here.
`expectedValue` can be `null` (and in fact will always be `null` if a key is in `requestedSettings` but not `descriptorSettings`), so using `Objects.equals` prevents an NPE here.
expectedValue
can benull
(and in fact will always benull
if a key is inrequestedSettings
but notdescriptorSettings
), so usingObjects.equals
prevents an NPE here.Relates #67147