myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3762] trunk/app/models/pack.rb: Fixed issue that


From: noreply
Subject: [myexperiment-hackers] [3762] trunk/app/models/pack.rb: Fixed issue that arises when component family contains deleted entries
Date: Fri, 1 Nov 2013 15:02:27 +0000 (UTC)

Revision
3762
Author
fbacall
Date
2013-11-01 15:02:27 +0000 (Fri, 01 Nov 2013)

Log Message

Fixed issue that arises when component family contains deleted entries

Modified Paths

Diff

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]