修改空指针问题
This commit is contained in:
parent
40b92f25cd
commit
48394cda37
|
@ -299,7 +299,7 @@ public class CrowdfundingService extends BaseComponent {
|
||||||
throw new RuntimeException(e.getMessage());
|
throw new RuntimeException(e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(send.getError() != null && send.getError().getMessage() != null){
|
if(send != null && send.getError() != null && send.getError().getMessage() != null){
|
||||||
log.info("扫描块失败(检查节点是否被限制) out {} ,{}, {}", startBlock, endBlock, send.getError().getMessage());
|
log.info("扫描块失败(检查节点是否被限制) out {} ,{}, {}", startBlock, endBlock, send.getError().getMessage());
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ public class CrowdfundingTask {
|
||||||
private CrowdfundingService crowdfundingService;
|
private CrowdfundingService crowdfundingService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 节点交易确认 10分钟执行一次
|
* 众筹交易确认 10分钟执行一次
|
||||||
*/
|
*/
|
||||||
@Scheduled(initialDelay = 15_000, fixedDelay = 1000 * 60 * 10)
|
@Scheduled(initialDelay = 15_000, fixedDelay = 1000 * 60 * 10)
|
||||||
public void exec() {
|
public void exec() {
|
||||||
|
|
Loading…
Reference in New Issue