diff --git a/js/server/modules/org/arangodb/sharding/agency-communication.js b/js/server/modules/org/arangodb/sharding/agency-communication.js index 5aa15fe81d..0860b8cd69 100644 --- a/js/server/modules/org/arangodb/sharding/agency-communication.js +++ b/js/server/modules/org/arangodb/sharding/agency-communication.js @@ -317,6 +317,9 @@ exports.Communication = function() { }; this.getShards = function() { var info = this.info(); + if (!info) { + return; + } return info.shards; }; this.getShardsForServer = function(name) {