diff --git a/node/node_handler.go b/node/node_handler.go index 7d83a9405..664aee09f 100644 --- a/node/node_handler.go +++ b/node/node_handler.go @@ -541,7 +541,7 @@ func (node *Node) epochShardStateMessageHandler(msgPayload []byte) int { utils.GetLogInstance().Error("Can't get shard state Message", "error", err) return -1 } - if node.Consensus.ShardID != 0 { + if node.Consensus != nil && node.Consensus.ShardID != 0 { node.processEpochShardState(epochShardState) } return 0