From aaf87647c10aaad6596117138228d1be8875244f Mon Sep 17 00:00:00 2001 From: James Allen Date: Wed, 11 Jun 2014 11:58:19 +0100 Subject: [PATCH] Null check for resizing diffs that may not have an ace editor --- services/web/public/coffee/track-changes/DiffView.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/public/coffee/track-changes/DiffView.coffee b/services/web/public/coffee/track-changes/DiffView.coffee index d704ae6bb0..b5c3269ce4 100644 --- a/services/web/public/coffee/track-changes/DiffView.coffee +++ b/services/web/public/coffee/track-changes/DiffView.coffee @@ -279,7 +279,7 @@ define [ @aceEditor.scrollToLine(@firstHiddenChangeAfter.range.end.row, true, false) resize: () -> - @aceEditor.resize() + @aceEditor?.resize() return DiffView