Skip to content

Commit 4b30a67

Browse files
Add return in deleteTask
Summary: If taskInfo is null , we should do return after sending the response. Else we will get exception when trying to read the null taskinfo Reviewed By: shangm2 Differential Revision: D80284931
1 parent 28380cb commit 4b30a67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

presto-native-execution/presto_cpp/main/TaskResource.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ proxygen::RequestHandler* TaskResource::deleteTask(
415415
if (!handlerState->requestExpired()) {
416416
if (taskInfo == nullptr) {
417417
sendTaskNotFound(downstream, taskId);
418+
return;
418419
}
419420
if (sendThrift) {
420421
thrift::TaskInfo thriftTaskInfo;

0 commit comments

Comments
 (0)