Fix null pointer

This commit is contained in:
Manfred Karrer 2017-07-11 15:28:01 +02:00
parent e2af215a57
commit d4867f712a

View File

@ -186,7 +186,7 @@ public class BsqFullNode extends BsqNode {
protected void onNewBsqBlock(BsqBlock bsqBlock) {
super.onNewBsqBlock(bsqBlock);
jsonChainStateExporter.maybeExport();
if (parseBlockchainComplete && p2pNetworkReady)
if (parseBlockchainComplete && p2pNetworkReady && requestBlocksManager != null)
requestBlocksManager.publishNewBlock(bsqBlock);
}
}