Skip to content

Commit

Permalink
Merge pull request #64 from Staketab/dev
Browse files Browse the repository at this point in the history
fix NPE
  • Loading branch information
MrFoxogen authored May 17, 2024
2 parents a71a09d + 246aee9 commit 7d1e23c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ public void checkBlocksFromZkCloudWorker() {
.filter(ZkCloudWorkerBlocksResponse::isFinal)
.filter(value -> value.getBlockNumber() > topBlockNumber)
.collect(Collectors.toList());
if (finalBlocks.isEmpty()) {
return;
}
getMoreBlocksIfNeed(finalBlocks, blocks, topBlockNumber);
List<ZkCloudWorkerBlocksResponse> cloudWorkerBlocksResponses = finalBlocks.reversed();

Expand Down

0 comments on commit 7d1e23c

Please sign in to comment.