diff --git a/editor_plugin.js b/editor_plugin.js index 409b73c06400930db9df17d140daa11d6130b2c6..d0855df8bde3ff1d12d597168ea6813361a53a6c 100644 --- a/editor_plugin.js +++ b/editor_plugin.js @@ -47,6 +47,9 @@ for (var i = 0; i < links.length; i++) { var link = links[i]; var href = link.getAttribute('href'); + if (!href) { + continue; + } // add icons to links via UNL template if (href.search(/^mailto:/) >= 0 ) {