Skip to content

Commit

Permalink
Handle nullptr on killJobRequest requestor (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andyz26 authored Nov 11, 2021
1 parent 3c163fa commit 28ce730
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1716,7 +1716,15 @@ public void onJobKillRequest(KillJobRequest req) {
jobInfo.get().jobActor.tell(req, getSelf());
} else {
logger.info("Job {} not found", req.jobId.getId() );
req.requestor.tell(new JobClusterManagerProto.KillJobResponse(req.requestId, CLIENT_ERROR_NOT_FOUND, JobState.Noop, "Job " + req.jobId + " not found", req.jobId, req.user), getSelf());
if (req.requestor != null) {
req.requestor.tell(
new JobClusterManagerProto.KillJobResponse(
req.requestId,
CLIENT_ERROR_NOT_FOUND,
JobState.Noop,
"Job " + req.jobId + " not found", req.jobId, req.user),
getSelf());
}
}
}

Expand Down

0 comments on commit 28ce730

Please sign in to comment.