浏览代码

Check response exists before calling method

Shane Kilkelly 9 年之前
父节点
当前提交
ada614cc69
共有 1 个文件被更改,包括 2 次插入 和 1 次删除
  1. 2 1
      services/web/public/coffee/ide/pdf/controllers/PdfController.coffee

+ 2 - 1
services/web/public/coffee/ide/pdf/controllers/PdfController.coffee

@@ -341,7 +341,8 @@ define [
 					response = getChkTex()
 					response = getChkTex()
 
 
 			# display the combined result
 			# display the combined result
-			response.finally annotateFiles
+			if response?
+				response.finally annotateFiles
 
 
 		getRootDocOverride_id = () ->
 		getRootDocOverride_id = () ->
 			doc = ide.editorManager.getCurrentDocValue()
 			doc = ide.editorManager.getCurrentDocValue()