[fix](repository) fix NullPointerException when execute create repository statement without properties (#30972)
Co-authored-by: caiconghui1 <caiconghui1@jd.com>
This commit is contained in:
@ -3505,7 +3505,7 @@ key_value_map ::=
|
||||
|
||||
opt_properties ::=
|
||||
{:
|
||||
RESULT = null;
|
||||
RESULT = Maps.newHashMap();
|
||||
:}
|
||||
| properties:properties
|
||||
{:
|
||||
@ -3644,7 +3644,7 @@ opt_actions ::=
|
||||
|
||||
opt_ext_properties ::=
|
||||
{:
|
||||
RESULT = null;
|
||||
RESULT = Maps.newHashMap();
|
||||
:}
|
||||
| KW_BROKER properties:properties
|
||||
{:
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user