GUI -- Protect against non-existent link element.
Change-Id: I6638de69c9d826c7697468727004c4392bf4925a
diff --git a/web/gui/src/main/webapp/app/view/topo/topoForce.js b/web/gui/src/main/webapp/app/view/topo/topoForce.js
index 7dadaeb..334b10b 100644
--- a/web/gui/src/main/webapp/app/view/topo/topoForce.js
+++ b/web/gui/src/main/webapp/app/view/topo/topoForce.js
@@ -874,7 +874,12 @@
}
function linkExisting(d) {
- restyleLinkElement(d, true);
+ // this is supposed to be an existing link, but we have observed
+ // occasions (where links are deleted and added rapidly?) where
+ // the DOM element has not been defined. So protection against that...
+ if (d.el) {
+ restyleLinkElement(d, true);
+ }
}
function linkEntering(d) {