From e636f4ec762410391aa8df7502468f98612ebb42 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Mon, 12 Sep 2016 16:53:55 -0400 Subject: [PATCH] Fix crash when pipeline template is not readable. refs #10003 --- apps/workbench/app/models/pipeline_instance.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/workbench/app/models/pipeline_instance.rb b/apps/workbench/app/models/pipeline_instance.rb index 0541ce5d17..62bbc54319 100644 --- a/apps/workbench/app/models/pipeline_instance.rb +++ b/apps/workbench/app/models/pipeline_instance.rb @@ -13,7 +13,7 @@ class PipelineInstance < ArvadosBase template = if lookup and lookup[self.pipeline_template_uuid] lookup[self.pipeline_template_uuid] else - PipelineTemplate.find(self.pipeline_template_uuid) if self.pipeline_template_uuid + PipelineTemplate.find?(self.pipeline_template_uuid) if self.pipeline_template_uuid end if template template.name -- 2.30.2