Merge branch '12690-12748-crunchstat-summary'
[arvados.git] / apps / workbench / app / helpers / provenance_helper.rb
index 94092a12ea10c1875067624778aa4c56ee7f6441..9b4d265dfa3a78df33f550f6309603b45dcc64e8 100644 (file)
@@ -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"