khawaja-abdullah commented on code in PR #8512:
URL: https://github.com/apache/gravitino/pull/8512#discussion_r2338598897


##########
spark-connector/spark-common/src/main/java/org/apache/gravitino/spark/connector/jdbc/GravitinoJdbcCatalog.java:
##########
@@ -85,7 +85,7 @@ protected SparkTypeConverter getSparkTypeConverter() {
   public void createNamespace(String[] namespace, Map<String, String> metadata)
       throws NamespaceAlreadyExistsException {
     Map<String, String> properties = Maps.newHashMap();
-    if (!metadata.isEmpty()) {
+    if (metadata != null && !metadata.isEmpty()) {

Review Comment:
   Thank you @Abyss-lord, I wasn't aware of this utility prior to making this 
change. I will update it right away.



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