Skip to content

Commit

Permalink
Fixed check Optional not null (#11015)
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Patierno <[email protected]>
  • Loading branch information
ppatierno authored Jan 8, 2025
1 parent 868808e commit 5efc0d4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,8 @@ private Results filterOutNonAlterableConfigChanges(
reconcilableTopics.forEach(reconcilableTopic -> {
var configChanges = results.getConfigChanges().stream()
.filter(pair -> pair.getKey().equals(reconcilableTopic)).findFirst();
if (configChanges != null && configChanges.isEmpty()) {
LOGGER.debugCr(reconcilableTopic.reconciliation(), "Config changes {}", configChanges);
if (configChanges.isPresent()) {
LOGGER.debugCr(reconcilableTopic.reconciliation(), "Config changes: {}", configChanges.get());
} else {
LOGGER.debugCr(reconcilableTopic.reconciliation(), "No config change");
}
Expand Down

0 comments on commit 5efc0d4

Please sign in to comment.