diff --git a/Projects/Social-Trading/NT/Modules/Storage.js b/Projects/Social-Trading/NT/Modules/Storage.js index 609d306732..ebe6953be0 100644 --- a/Projects/Social-Trading/NT/Modules/Storage.js +++ b/Projects/Social-Trading/NT/Modules/Storage.js @@ -95,6 +95,12 @@ exports.newSocialTradingModulesStorage = function newSocialTradingModulesStorage } } /* + We can not continue if we cannot identify the most up to date node. + */ + if (p2pNetworkNodeMostUpToDate === undefined){ + return + } + /* We will check that the node most up to date is not ourselves. */ if (p2pNetworkNodeMostUpToDate.node.id === thisObject.p2pNetworkNode.node.id) {