Skip to content

Commit

Permalink
[Minor] Optionals should not be set to null (#6333)
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

Co-authored-by: Justin Mclean <[email protected]>
  • Loading branch information
github-actions[bot] and justinmclean authored Jan 20, 2025
1 parent 637f4f0 commit 79e8804
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 79e8804

Please sign in to comment.