diff --git a/fe/fe-core/src/main/java/com/starrocks/server/CatalogMgr.java b/fe/fe-core/src/main/java/com/starrocks/server/CatalogMgr.java index 187755378d006..ca4743a4699e4 100644 --- a/fe/fe-core/src/main/java/com/starrocks/server/CatalogMgr.java +++ b/fe/fe-core/src/main/java/com/starrocks/server/CatalogMgr.java @@ -191,7 +191,7 @@ public void alterCatalog(AlterCatalogStmt stmt) { Map properties = ((ModifyTablePropertiesClause) stmt.getAlterClause()).getProperties(); String serviceName = properties.get("ranger.plugin.hive.service.name"); - if (serviceName == null || serviceName.isEmpty()) { + if (Strings.isNullOrEmpty(serviceName)) { if (Config.access_control.equals("ranger")) { Authorizer.getInstance().setAccessControl(catalogName, new RangerStarRocksAccessController()); } else {