From 9acf874573d8dd4a0c6d5c81c3f0f4d9d1829636 Mon Sep 17 00:00:00 2001 From: leej1012 Date: Mon, 24 Jun 2024 14:59:47 +0800 Subject: [PATCH] Update getNodesByFilter --- .../com/github/ontio/service/impl/NodesServiceImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/back-end-projects/Explorer/src/main/java/com/github/ontio/service/impl/NodesServiceImpl.java b/back-end-projects/Explorer/src/main/java/com/github/ontio/service/impl/NodesServiceImpl.java index 701a877b..391ed4f8 100644 --- a/back-end-projects/Explorer/src/main/java/com/github/ontio/service/impl/NodesServiceImpl.java +++ b/back-end-projects/Explorer/src/main/java/com/github/ontio/service/impl/NodesServiceImpl.java @@ -1005,6 +1005,9 @@ public PageResponseBean getNodesByFilter(NodesInfoDto dto) { .feeSharingRatio(nodeInfoOffChain.getFeeSharingRatio()).ontologyHarbinger(nodeInfoOffChain.getOntologyHarbinger()).risky(nodeInfoOffChain.getRisky()).badActor(nodeInfoOffChain.getBadActor()) .build(); NodeInspire nodeInspire = nodeInspireMap.get(infoRespDto.getPublicKey()); + if (nodeInspire == null) { + continue; + } String userFoundationBonusIncentiveRate = nodeInspire.getUserFoundationBonusIncentiveRate(); String userGasFeeIncentiveRate = nodeInspire.getUserGasFeeIncentiveRate(); String userReleasedOngIncentiveRate = nodeInspire.getUserReleasedOngIncentiveRate(); @@ -1024,6 +1027,9 @@ public PageResponseBean getNodesByFilter(NodesInfoDto dto) { .feeSharingRatio(nodeInfoOffChain.getFeeSharingRatio()).ontologyHarbinger(nodeInfoOffChain.getOntologyHarbinger()).risky(nodeInfoOffChain.getRisky()).badActor(nodeInfoOffChain.getBadActor()) .build(); NodeInspire nodeInspire = nodeInspireMap.get(infoRespDto.getPublicKey()); + if (nodeInspire == null) { + continue; + } String userFoundationBonusIncentiveRate = nodeInspire.getUserFoundationBonusIncentiveRate(); String userGasFeeIncentiveRate = nodeInspire.getUserGasFeeIncentiveRate(); String userReleasedOngIncentiveRate = nodeInspire.getUserReleasedOngIncentiveRate();