diff --git a/app/views/managements/_user_agent_list.html.erb b/app/views/managements/_user_agent_list.html.erb index 18ac8a09..e386970c 100644 --- a/app/views/managements/_user_agent_list.html.erb +++ b/app/views/managements/_user_agent_list.html.erb @@ -13,13 +13,13 @@
<% @user_agents.each do |ua| %> <% user = User.find_by_login(ua.key) %> - <% user_extension = user.user_extensions %> - <% school = user_extension.school %> + <% user_extension = user&.user_extensions %> + <% school = user_extension&.school %>