diff --git a/src/main/resources/web/js/views/topology.js b/src/main/resources/web/js/views/topology.js
index 207a59c42426837742da0ca6d9bc4a308adb8163..60b1a93809853ebef2cf8deeeca8d801c4f3e10d 100644
--- a/src/main/resources/web/js/views/topology.js
+++ b/src/main/resources/web/js/views/topology.js
@@ -43,7 +43,8 @@ window.TopologyView = Backbone.View.extend({
 
           for (var i = 0; i < this.hosts.length; i++) {
             host = this.hosts[i];
-            if ('ip' in host.attributes['network-addresses'][0]) {
+            if (( host.attributes['network-addresses'].length > 0 ) && 
+                    ('ip' in host.attributes['network-addresses'][0])) {
                 host.name = host.attributes['network-addresses'][0]['ip'] + "\n" + host.id;
             } else {
                 host.name = host.id;