diff --git a/app/helpers/todos_helper.rb b/app/helpers/todos_helper.rb index 684193e1..daad4fff 100644 --- a/app/helpers/todos_helper.rb +++ b/app/helpers/todos_helper.rb @@ -170,7 +170,7 @@ module TodosHelper if (['project', 'tag', 'stats', 'search'].include?(parent_container_type)) str << item_link_to_context( todo ) end - if (['context', 'tickler', 'tag', 'stats', 'search'].include?(parent_container_type)) && todo.project_id + if (['context', 'tickler', 'tag', 'stats', 'search'].include?(parent_container_type)) && !todo.project_id.nil? && !todo.project.is_a?(NullProject) str << item_link_to_project( todo ) end end