Skip to content

Commit

Permalink
Optionals should not be set to null
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmclean committed Jan 16, 2025
1 parent eb3fb31 commit 3dfcc4f
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 3dfcc4f

Please sign in to comment.