World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#7636] add null check to BaseEntityCache validation (#7658)
Yunchi Pang059902562707
diff --git a/core/src/main/java/org/apache/gravitino/cache/BaseEntityCache.java b/core/src/main/java/org/apache/gravitino/cache/BaseEntityCache.javaindex b61cc93454..4f4b34e5e7 100644--- a/core/src/main/java/org/apache/gravitino/cache/BaseEntityCache.java+++ b/core/src/main/java/org/apache/gravitino/cache/BaseEntityCache.java@@ -64,6 +64,7 @@ public abstract class BaseEntityCache implements EntityCache {* @param entity The {@link Entity} instance to check.*/protected static void validateEntityHasIdentifier(Entity entity) {+ Preconditions.checkArgument(entity != null, "Entity cannot be null");Preconditions.checkArgument(entity instanceof HasIdentifier, "Unsupported EntityType: " + entity.type());}