From 6526b29f9684892a6d0fda68140164c2b7fd7266 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Sat, 25 Jun 2016 13:56:45 +0100 Subject: [PATCH] add another null check on file inside fetchLogs --- .../web/public/coffee/ide/pdf/controllers/PdfController.coffee | 2 +- 1 file changed, 1 insertion(+), 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 f503437407..52b243c79b 100644 --- a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee +++ b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee @@ -156,7 +156,7 @@ define [ method:"GET" params: clsiserverid:ide.clsiServerId - if file.url? # FIXME clean this up when we have file.urls out consistently + if file?.url? # FIXME clean this up when we have file.urls out consistently opts.url = file.url else if file?.build? opts.url = "/project/#{$scope.project_id}/build/#{file.build}/output/#{name}"