Skip to content

Commit

Permalink
fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFoxogen committed May 17, 2024
1 parent f0d0ab7 commit 246aee9
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 246aee9

Please sign in to comment.