mchades commented on code in PR #4261:
URL: https://github.com/apache/gravitino/pull/4261#discussion_r1698146312


##########
core/src/main/java/org/apache/gravitino/GravitinoEnv.java:
##########
@@ -226,6 +226,26 @@ public IdGenerator idGenerator() {
     return idGenerator;
   }
 
+  /**
+   * Get the CatalogManager associated with the Gravitino environment.
+   *
+   * @return The CatalogManager instance.
+   */
+  public CatalogManager catalogManager() {
+    Preconditions.checkArgument(catalogManager != null, "GravitinoEnv is not 
initialized.");

Review Comment:
   This variable is lazily initialized, we need to ensure it has been 
initialized when accessed.



-- 
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