From 4998103180b60581a7de73426288727dad0ed865 Mon Sep 17 00:00:00 2001 From: Abel Coronado Date: Mon, 24 Jul 2017 15:46:32 +0200 Subject: [PATCH] Solved bug when Network Topology is empty (#413) --- src/sunstone/public/app/tabs/vnets-topology-tab.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/sunstone/public/app/tabs/vnets-topology-tab.js b/src/sunstone/public/app/tabs/vnets-topology-tab.js index 9312106b96..f77c3dd6ae 100644 --- a/src/sunstone/public/app/tabs/vnets-topology-tab.js +++ b/src/sunstone/public/app/tabs/vnets-topology-tab.js @@ -588,7 +588,9 @@ define(function(require) { _network.cluster(clusterOptionsByData); }); - _network.stabilize(); + if(_network){ + _network.stabilize(); + } } function _openVMs(){ @@ -604,10 +606,15 @@ define(function(require) { } }); - _network.stabilize(); + if(_network){ + _network.stabilize(); + } } function _fit(){ - _network.fit(); + + if(_network){ + _network.fit(); + } } });