I can't view one of my teams in Gitorious. I get the following error: NoMethodError (undefined method `project_id' for nil:NilClass): app/models/group.rb:85:in `all_related_project_ids'
If I comment out line 85 of group.rb it seems to work again. I have other teams that don't have this problem, only this one specific team has some data corruption in the database. I manually examined all the tables that I though might have bad data, projects, repositories, committerships, memberships, groups and think I all the owner_id, and creator_id's are correct. But I can't debug the all_related_project_ids method to see which repository it thinks is bad. def all_related_project_ids all_project_ids = projects.map{|p| p.id } all_project_ids << repositories.map{|r| r.project_id } all_project_ids << committerships.map{|p| p.repository.project_id } <===== this is the line where it is failing all_project_ids.flatten!.uniq! all_project_ids end Any idea how to debug this error? -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com