修改空指针问题

This commit is contained in:
1186 2024-06-27 10:27:43 +08:00
parent 40b92f25cd
commit 48394cda37
2 changed files with 2 additions and 2 deletions

View File

@ -299,7 +299,7 @@ public class CrowdfundingService extends BaseComponent {
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());
return null;
}

View File

@ -23,7 +23,7 @@ public class CrowdfundingTask {
private CrowdfundingService crowdfundingService;
/**
* 节点交易确认 10分钟执行一次
* 众筹交易确认 10分钟执行一次
*/
@Scheduled(initialDelay = 15_000, fixedDelay = 1000 * 60 * 10)
public void exec() {