From ada614cc6942b803d74c8dbf91634e2f94bd0b34 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Tue, 16 May 2017 09:20:12 +0100 Subject: [PATCH] Check response exists before calling method --- .../web/public/coffee/ide/pdf/controllers/PdfController.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee index 394809d508..6c4d7973c7 100644 --- a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee +++ b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee @@ -341,7 +341,8 @@ define [ response = getChkTex() # display the combined result - response.finally annotateFiles + if response? + response.finally annotateFiles getRootDocOverride_id = () -> doc = ide.editorManager.getCurrentDocValue()