Skip to content

Commit

Permalink
[Minor] Optionals should not be set to null (apache#6276)
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?

Optionals should not be set to null

### Why are the changes needed?

see above

Fix: # N/A

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Tested locally
  • Loading branch information
justinmclean authored and Abyss-lord committed Jan 20, 2025
1 parent 4ba7f24 commit 7a776e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public OwnerDetails(
/** Displays the owner of an entity. */
@Override
public void handle() {
Optional<Owner> owner = null;
Optional<Owner> owner = Optional.empty();
MetadataObject metadata = MetadataObjects.parse(entity, entityType);

try {
Expand Down

0 comments on commit 7a776e0

Please sign in to comment.