From 1b63db91d053823682809b0397d044879d42eabd Mon Sep 17 00:00:00 2001 From: James Allen Date: Tue, 17 Jan 2017 11:51:02 +0100 Subject: [PATCH] Add in a null check --- .../aceEditor/track-changes/TrackChangesManager.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor/track-changes/TrackChangesManager.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor/track-changes/TrackChangesManager.coffee index 5de7e3be2d..2d57100cc5 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor/track-changes/TrackChangesManager.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor/track-changes/TrackChangesManager.coffee @@ -399,11 +399,11 @@ define [ session = @editor.getSession() markers = session.getMarkers() {background_marker_id, callout_marker_id} = @changeIdToMarkerIdMap[change_id] - if background_marker_id? + if background_marker_id? and markers[background_marker_id]? background_marker = markers[background_marker_id] background_marker.range.start = start background_marker.range.end = end - if callout_marker_id? + if callout_marker_id? and markers[callout_marker_id]? callout_marker = markers[callout_marker_id] callout_marker.range.start = start callout_marker.range.end = start