Просмотр исходного кода

Check response exists before calling method

Shane Kilkelly 9 лет назад
Родитель
Сommit
ada614cc69

+ 2 - 1
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()