diff --git a/extension/src/json-viewer/highlighter.js b/extension/src/json-viewer/highlighter.js index 5df1c24..dda21f1 100644 --- a/extension/src/json-viewer/highlighter.js +++ b/extension/src/json-viewer/highlighter.js @@ -86,7 +86,7 @@ Highlighter.prototype = { var text = self.removeQuotes(textContent); - if (text.match(URL_PATTERN) && self.clickableUrls()) { + if (text && text.match(URL_PATTERN) && self.clickableUrls()) { var decodedText = self.decodeText(text); elements.forEach(function(node) { if (self.wrapLinkWithAnchorTag()) {