Modified: trunk/app/models/pack.rb (3761 => 3762)
--- trunk/app/models/pack.rb 2013-11-01 14:59:45 UTC (rev 3761)
+++ trunk/app/models/pack.rb 2013-11-01 15:02:27 UTC (rev 3762)
@@ -715,7 +715,7 @@
end
def component_profile
- entry = contributable_entries.detect { |e| e.contributable_type == 'Blob' && e.contributable.component_profile? }
+ entry = contributable_entries.detect { |e| e.contributable_type == 'Blob' && e.contributable && e.contributable.component_profile? }
if entry
profile = ""
profile.find_version(entry.contributable_version) if entry.contributable_version