[Bug](function) fix npe on select http_stream directly (#28423)

fix npe on select http_stream directly
This commit is contained in:
Pxl
2023-12-15 11:09:45 +08:00
committed by GitHub
parent ce60064573
commit 8661b5ec21
2 changed files with 6 additions and 1 deletions

View File

@ -385,7 +385,7 @@ public abstract class ExternalFileTableValuedFunction extends TableValuedFunctio
long backendId = ctx.getBackendId();
if (getTFileType() == TFileType.FILE_STREAM) {
Backend be = Env.getCurrentSystemInfo().getIdToBackend().get(backendId);
if (be.isAlive()) {
if (be == null || be.isAlive()) {
return be;
}
}