From 3895b3adf05dc6c8d7b66e6bdd42e576a03b1f09 Mon Sep 17 00:00:00 2001 From: Ward Vandewege Date: Mon, 25 Sep 2017 16:53:21 -0400 Subject: [PATCH] Do not blow up the provenance graph if a PDH used in the workflow no longer exists. refs #12316 Arvados-DCO-1.1-Signed-off-by: Ward Vandewege --- apps/workbench/app/helpers/provenance_helper.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/workbench/app/helpers/provenance_helper.rb b/apps/workbench/app/helpers/provenance_helper.rb index 94092a12ea..9b4d265dfa 100644 --- a/apps/workbench/app/helpers/provenance_helper.rb +++ b/apps/workbench/app/helpers/provenance_helper.rb @@ -232,7 +232,11 @@ module ProvenanceHelper # Search for any collection with this PDH cols = @opts[:input_collections][pdh] end - names = cols.collect{|x| x[:name]}.uniq + if cols + names = cols.collect{|x| x[:name]}.uniq + else + names = ['(collection not found)'] + end input_name = names.first if names.length > 1 input_name += " + #{names.length - 1} more" -- 2.30.2