Fix crash on unexpected case of a collection whose owner_uuid is not root.
authorTom Clegg <tom@curoverse.com>
Mon, 23 Jun 2014 13:34:41 +0000 (09:34 -0400)
committerTom Clegg <tom@curoverse.com>
Mon, 23 Jun 2014 13:37:44 +0000 (09:37 -0400)
closes #3047

apps/workbench/app/views/application/_selection_checkbox.html.erb

index 25aef94cdb0e0ceb3a565d7397e33ffc634a5477..de880dd8c6fbe95acad050a0c6c44d7eca3ac91d 100644 (file)
@@ -1,4 +1,4 @@
-<%if object and (object.class.goes_in_projects? or (object.is_a?(Link) and ArvadosBase::resource_class_for_uuid(object.head_uuid).to_s == 'Collection')) %>
+<%if object and object.uuid and (object.class.goes_in_projects? or (object.is_a?(Link) and ArvadosBase::resource_class_for_uuid(object.head_uuid).to_s == 'Collection')) %>
   <% fn = if defined? friendly_name
             friendly_name
           else