Merge branch '10200-cwl-crunch-script' closes #10200
[arvados.git] / apps / workbench / app / views / work_units / _component_detail.html.erb
index f66ff07a88cd08612fb3feb3c53cf2cec6f1cbc0..7d588bace69d05651ca675a4069fa4ecafcd27be 100644 (file)
@@ -43,6 +43,7 @@
             <table>
               <% # link to repo tree/file only if the repo is readable and the commit is a sha1
                  repo = (/^[0-9a-f]{40}$/ =~ current_obj.script_version and
+                         current_obj.repository and
                          object_for_dataclass(Repository, current_obj.repository, :name))
                  repo = nil unless repo.andand.http_fetch_url
                  %>