Skip to content

500 error on Todos menu click

one of our users have a 500 error when he tries to visite the todos page, here is the error log entry

ActionView::Template::Error (undefined method `title' for nil:NilClass):
23: .todo-body
24: .todo-note
25: .md
26: = event_note(todo.body, project: todo.project)
27:
28: - if todo.pending?
29: .todo-actions
app/models/todo.rb:75:in `body'
app/views/dashboard/todos/_todo.html.haml:26:in `_app_views_dashboard_todos__todo_html_haml___4498567361429648998_89308240'
app/views/dashboard/todos/index.html.haml:79:in `block in _app_views_dashboard_todos_index_html_haml___3813853953904287957_101157200'
app/views/dashboard/todos/index.html.haml:72:in `each'
app/views/dashboard/todos/index.html.haml:72:in `_app_views_dashboard_todos_index_html_haml___3813853953904287957_101157200'
lib/gitlab/request_profiler/middleware.rb:15:in `call'
lib/gitlab/middleware/go.rb:16:in `call'