diff --git a/fe/fe-core/src/main/java/com/starrocks/qe/StmtExecutor.java b/fe/fe-core/src/main/java/com/starrocks/qe/StmtExecutor.java index c78d92f85faa1..1c801e6101b77 100644 --- a/fe/fe-core/src/main/java/com/starrocks/qe/StmtExecutor.java +++ b/fe/fe-core/src/main/java/com/starrocks/qe/StmtExecutor.java @@ -690,7 +690,9 @@ public void execute() throws Exception { } else { // Release all resources after the query finish as soon as possible, as query profile is // asynchronous which can be delayed a long time. - coord.onReleaseSlots(); + if (coord != null) { + coord.onReleaseSlots(); + } if (context instanceof ArrowFlightSqlConnectContext) { isAsync = true;