diff --git a/app/views/contests/show_attendingcontest.html.erb b/app/views/contests/show_attendingcontest.html.erb
index d6f614db1..7818f5fb3 100644
--- a/app/views/contests/show_attendingcontest.html.erb
+++ b/app/views/contests/show_attendingcontest.html.erb
@@ -260,7 +260,9 @@
:<%= format_time c_project.created_at %>
<%= l(:label_attendingcontest_spoksman) %>
+ <% unless c_project.nil? || c_project.user.nil? %>
:<%= link_to c_project.user.name,user_path(c_project.user) %>
+ <% end %>
@@ -295,7 +297,9 @@
:<%= format_time c_softapplication.created_at %>
<%= l(:label_attendingcontest_spoksman) %>
+ <% unless c_softapplication.nil? || c_softapplication.softapplication.nil? || c_softapplication.softapplication.user.nil? %>
:<%= link_to c_softapplication.softapplication.user.name,user_path(c_softapplication.softapplication.user) %>
+ <% end %>
diff --git a/app/views/layouts/base_courses.html.erb b/app/views/layouts/base_courses.html.erb
index adedb66c5..5ab0a98a9 100644
--- a/app/views/layouts/base_courses.html.erb
+++ b/app/views/layouts/base_courses.html.erb
@@ -178,7 +178,7 @@
- <% unless @course.teacher.user_extensions.nil? %>
+ <% unless @course.teacher.user_extensions.nil? || @course.teacher.user_extensions.school.nil? %>
<%= l(:label_teacher_work_unit) %> : |
diff --git a/app/views/layouts/base_homework.html.erb b/app/views/layouts/base_homework.html.erb
index 88190d536..ce9671ad1 100644
--- a/app/views/layouts/base_homework.html.erb
+++ b/app/views/layouts/base_homework.html.erb
@@ -116,7 +116,9 @@
<%= l(:label_teacher_work_unit) %> : |
+ <% unless @user.user_extensions.nil? || @user.user_extensions.school.nil? %>
+ <% end %>