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();