You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ea...@apache.org on 2018/11/11 20:55:55 UTC

[2/4] qpid-dispatch git commit: DISPATCH-1180 Prevent error if link's connection is requested before connections are available

DISPATCH-1180 Prevent error if link's connection is requested before connections are available


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/65b70d80
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/65b70d80
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/65b70d80

Branch: refs/heads/master
Commit: 65b70d809a5260d59f298c51fdbda409745607d0
Parents: 6d55f1d
Author: Ernest Allen <ea...@redhat.com>
Authored: Sun Nov 11 15:50:51 2018 -0500
Committer: Ernest Allen <ea...@redhat.com>
Committed: Sun Nov 11 15:50:51 2018 -0500

----------------------------------------------------------------------
 console/stand-alone/plugin/js/amqp/topology.js | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/65b70d80/console/stand-alone/plugin/js/amqp/topology.js
----------------------------------------------------------------------
diff --git a/console/stand-alone/plugin/js/amqp/topology.js b/console/stand-alone/plugin/js/amqp/topology.js
index d1dfa1a..3fd1764 100644
--- a/console/stand-alone/plugin/js/amqp/topology.js
+++ b/console/stand-alone/plugin/js/amqp/topology.js
@@ -292,6 +292,8 @@ class Topology {
   getConnForLink(link) {
     // find the connection for this link
     var conns = this._nodeInfo[link.nodeId].connection;
+    if (!conns)
+      return {};
     var connIndex = conns.attributeNames.indexOf('identity');
     var linkCons = conns.results.filter(function (conn) {
       return conn[connIndex] === link.connectionId;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org