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