diff --git a/app/views/dmsf/show.html.erb b/app/views/dmsf/show.html.erb index 2187c514..ac20e7ae 100644 --- a/app/views/dmsf/show.html.erb +++ b/app/views/dmsf/show.html.erb @@ -153,7 +153,11 @@ :title => subfolder.title }) %> <% end %> - <% @dir_links.each do |link| %> + <% @dir_links.each do |link| %> + <% unless (link.target_project && link.target_folder) %> + <% Rails.logger.error "Error: dmsf_link id #{link.id} has no target!" %> + <% next %> + <% end %>