Skip to content

Commit 275cecb

Browse files
committed
[fix](schema scan) Fix NPE for schema scan
1 parent b6a4635 commit 275cecb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -895,13 +895,13 @@ public TDescribeTablesResult describeTables(TDescribeTablesParams params) throws
895895
if (db != null) {
896896
for (String tableName : tables) {
897897
TableIf table = db.getTableNullableIfException(tableName);
898-
if (table.isTemporary()) {
899-
// because we return all table names to be,
900-
// so when we skip temporary table, we should add a offset here
901-
tablesOffset.add(columns.size());
902-
continue;
903-
}
904898
if (table != null) {
899+
if (table.isTemporary()) {
900+
// because we return all table names to be,
901+
// so when we skip temporary table, we should add a offset here
902+
tablesOffset.add(columns.size());
903+
continue;
904+
}
905905
table.readLock();
906906
try {
907907
List<Column> baseSchema = table.getBaseSchemaOrEmpty();

0 commit comments

Comments
 (0)