yuqi1129 commented on code in PR #9914:
URL: https://github.com/apache/gravitino/pull/9914#discussion_r2963807923


##########
core/src/main/java/org/apache/gravitino/GravitinoEnv.java:
##########
@@ -456,7 +456,7 @@ public StatisticDispatcher statisticDispatcher() {
   }
 
   public boolean cacheEnabled() {
-    return config.get(Configs.CACHE_ENABLED);
+    return config != null && config.get(Configs.CACHE_ENABLED);

Review Comment:
   I remembered that the default value of `CACHE_ENABLED` is true, and that it 
defaults to false if the config is null. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to