[Bug] Fix NPE when replaying modify table property (#5378)

This commit is contained in:
xxiao2018
2021-02-16 22:34:48 +08:00
committed by GitHub
parent 204fa45a48
commit 99e1a97822

View File

@ -5410,7 +5410,8 @@ public class Catalog {
try {
TableProperty tableProperty = olapTable.getTableProperty();
if (tableProperty == null) {
olapTable.setTableProperty(new TableProperty(properties).buildProperty(opCode));
tableProperty = new TableProperty(properties).buildProperty(opCode);
olapTable.setTableProperty(tableProperty);
} else {
tableProperty.modifyTableProperties(properties);
tableProperty.buildProperty(opCode);