lib/spaceship/tunes/build_train.rb in spaceship-0.9.0 vs lib/spaceship/tunes/build_train.rb in spaceship-0.9.1

- old
+ new

@@ -59,15 +59,15 @@ # Setup all the builds and processing builds def setup super - @builds = self.raw_data['builds'].collect do |attrs| + @builds = (self.raw_data['builds'] || []).collect do |attrs| attrs.merge!(build_train: self) Tunes::Build.factory(attrs) end - @processing_builds = self.raw_data['buildsInProcessing'].collect do |attrs| + @processing_builds = (self.raw_data['buildsInProcessing'] || []).collect do |attrs| attrs.merge!(build_train: self) Tunes::Build.factory(attrs) end end