diff --git a/src/app/editor/contextualListener.js b/src/app/editor/contextualListener.js index 4c4bbf77e3..124919fecd 100644 --- a/src/app/editor/contextualListener.js +++ b/src/app/editor/contextualListener.js @@ -63,8 +63,8 @@ class ContextualListener { } _highlight (node, compilationResult) { - var src = node.src - var position = this.sourceMappingDecoder.decode(src) + if (!node) return + var position = this.sourceMappingDecoder.decode(node.src) var eventId = this._api.highlight(position, node) if (eventId) { this._activeHighlights.push({ eventId, position, fileTarget: compilationResult.source.target })