Skip to content

Commit b05428c

Browse files
branch-4.0: [fix](schema scan) Fix NPE for schema scan #59389 (#59405)
Cherry-picked from #59389 Co-authored-by: Gabriel <[email protected]>
1 parent 528cdde commit b05428c

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
@@ -911,13 +911,13 @@ public TDescribeTablesResult describeTables(TDescribeTablesParams params) throws
911911
if (db != null) {
912912
for (String tableName : tables) {
913913
TableIf table = db.getTableNullableIfException(tableName);
914-
if (table.isTemporary()) {
915-
// because we return all table names to be,
916-
// so when we skip temporary table, we should add a offset here
917-
tablesOffset.add(columns.size());
918-
continue;
919-
}
920914
if (table != null) {
915+
if (table.isTemporary()) {
916+
// because we return all table names to be,
917+
// so when we skip temporary table, we should add a offset here
918+
tablesOffset.add(columns.size());
919+
continue;
920+
}
921921
table.readLock();
922922
try {
923923
List<Column> baseSchema = table.getBaseSchemaOrEmpty();

0 commit comments

Comments
 (0)