Skip to content

Commit 0813215

Browse files
committed
Merge pull request #56 from qq254963746/develop
Develop
2 parents ca6957f + da4caa2 commit 0813215

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lts-core/src/main/java/com/lts/core/support/SystemClock.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ private SystemClock(long period) {
2424
}
2525

2626
private static class InstanceHolder {
27-
public static SystemClock INSTANCE = new SystemClock(1);
27+
public static final SystemClock INSTANCE = new SystemClock(1);
2828
}
2929

3030
public static SystemClock instance() {

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)