[fix](repository) fix NullPointerException when execute create repository statement without properties (#30972)

Co-authored-by: caiconghui1 <caiconghui1@jd.com>
This commit is contained in:
caiconghui
2024-02-18 16:33:41 +08:00
committed by yiguolei
parent a7037df9a1
commit 3f126fdd63
2 changed files with 4 additions and 3 deletions

View File

@ -73,7 +73,8 @@ public class RefreshCatalogStmt extends DdlStmt {
}
// Set to false only if user set the property "invalid_cache"="false"
invalidCache = !(properties != null && properties.get(INVALID_CACHE).equalsIgnoreCase("false"));
invalidCache = !(properties.get(INVALID_CACHE) != null && properties.get(INVALID_CACHE)
.equalsIgnoreCase("false"));
}
@Override