From 6a0d219bd5fc3ff99b108e7fb70d84c8c2ee1304 Mon Sep 17 00:00:00 2001 From: Michael Hackstein Date: Thu, 23 Jan 2014 10:12:48 +0100 Subject: [PATCH] Fixed bug in agency communication. Discrepancy with Agency content --- .../modules/org/arangodb/sharding/agency-communication.js | 3 +++ 1 file changed, 3 insertions(+) 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) {