From 4736d8d46d42e9ffe98a8d24e76d9730280bf3ed Mon Sep 17 00:00:00 2001 From: niels1286 Date: Wed, 13 Apr 2022 15:14:58 +0800 Subject: [PATCH] 2.12.6-fix6 --- .../src/main/java/io/nuls/poc/ConsensusBootStrap.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/nuls-consensus/nuls-consensus-poc/src/main/java/io/nuls/poc/ConsensusBootStrap.java b/module/nuls-consensus/nuls-consensus-poc/src/main/java/io/nuls/poc/ConsensusBootStrap.java index 8fb3a7db5..c48745908 100644 --- a/module/nuls-consensus/nuls-consensus-poc/src/main/java/io/nuls/poc/ConsensusBootStrap.java +++ b/module/nuls-consensus/nuls-consensus-poc/src/main/java/io/nuls/poc/ConsensusBootStrap.java @@ -180,10 +180,13 @@ private void initDB() throws Exception { List list2; try { list2 = RocksDBService.valueList("consensus_agent1"); - }catch (Exception e){ + } catch (Exception e) { Log.error(e); return; } + if (list2 == null) { + return; + } for (byte[] arr : list2) { AgentPo po = new AgentPo(); po.parse(arr, 0);