diff --git a/clients/cli/src/main/java/org/apache/gravitino/cli/commands/OwnerDetails.java b/clients/cli/src/main/java/org/apache/gravitino/cli/commands/OwnerDetails.java index 8485a587560..a815d6ba14d 100644 --- a/clients/cli/src/main/java/org/apache/gravitino/cli/commands/OwnerDetails.java +++ b/clients/cli/src/main/java/org/apache/gravitino/cli/commands/OwnerDetails.java @@ -68,7 +68,7 @@ public OwnerDetails( /** Displays the owner of an entity. */ @Override public void handle() { - Optional owner = null; + Optional owner = Optional.empty(); MetadataObject metadata = MetadataObjects.parse(entity, entityType); try {