Skip to content
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 undefined behaviour in backing store #1558

Merged
merged 19 commits into from
Sep 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix SonarCloud reliability warning
  • Loading branch information
Ndiritu committed Sep 9, 2024
commit 5fe4b4538ad6434a03b6d3d63c55b478ab67866c
Original file line number Diff line number Diff line change
@@ -149,6 +149,9 @@ private Object getValueFromWrapper(final Pair<Boolean, Object> wrapper) {
@Nullable public <T> T get(@Nonnull final String key) {
Objects.requireNonNull(key);
final Pair<Boolean, Object> wrapper = this.store.get(key);
if (wrapper == null) {
return null;
}
final Object value = this.getValueFromWrapper(wrapper);

boolean hasChanged = wrapper.getValue0();
Loading