Skip to content

Commit 7821249

Browse files
author
胡贵
committed
fix
1 parent 3e71dc1 commit 7821249

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lts-jobclient/src/main/java/com/lts/jobclient/processor/JobFinishedProcessor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ public RemotingCommand processRequest(ChannelHandlerContext ctx, RemotingCommand
3131

3232
JobFinishedRequest requestBody = request.getBody();
3333
try {
34-
jobFinishedHandler.handle(requestBody.getJobResults());
34+
if (jobFinishedHandler != null) {
35+
jobFinishedHandler.handle(requestBody.getJobResults());
36+
}
3537
} catch (Exception t) {
3638
LOGGER.error(t.getMessage(), t);
3739
}

0 commit comments

Comments
 (0)