From 99e1a97822ebfd12aedf74e7a2b311ebd66cd5e1 Mon Sep 17 00:00:00 2001 From: xxiao2018 <78575849+xxiao2018@users.noreply.github.com> Date: Tue, 16 Feb 2021 22:34:48 +0800 Subject: [PATCH] [Bug] Fix NPE when replaying modify table property (#5378) --- fe/fe-core/src/main/java/org/apache/doris/catalog/Catalog.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/Catalog.java b/fe/fe-core/src/main/java/org/apache/doris/catalog/Catalog.java index c0183148b3..7ea431f3bf 100755 --- a/fe/fe-core/src/main/java/org/apache/doris/catalog/Catalog.java +++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/Catalog.java @@ -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);