NoMethodError: undefined method `[]' for nil:NilClass #18

Closed
toddmazierski opened this Issue Mar 4, 2014 · 0 comments

Projects

None yet

1 participant

@toddmazierski
Collaborator

Check full details on Airbrake: #71512761

Backtrace:

```
[PROJECT_ROOT]/lib/audio_video.rb:23:in thumbnail_url
[PROJECT_ROOT]/app/models/av_content_item.rb:24:in fetch_metadata
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:407:in _run__2872052714298609623__validation__48428153488328953__callbacks
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in __run_callback
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in _run_validation_callbacks
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in run_callbacks
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activemodel-3.2.13/lib/active_model/validations/callbacks.rb:53:in run_validations!
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activemodel-3.2.13/lib/active_model/validations.rb:195:in valid?
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/validations.rb:69:in valid?
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/validations.rb:77:in perform_validations
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/validations.rb:50:in save
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/attribute_methods/dirty.rb:22:in save
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/transactions.rb:259:in block (2 levels) in save
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/transactions.rb:313:in block in with_transaction_returning_status
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/transactions.rb:208:in transaction
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/transactions.rb:311:in with_transaction_returning_status
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/transactions.rb:259:in block in save
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/transactions.rb:270:in rollback_active_record_state!
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/transactions.rb:258:in save
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/relation/finder_methods.rb:296:in find_or_instantiator_by_attributes
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/dynamic_matchers.rb:52:in method_missing
[PROJECT_ROOT]/app/models/content_match.rb:53:in create_content_item
[PROJECT_ROOT]/app/models/content_match.rb:76:in block in find_or_create_content_items
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/associations/collection_proxy.rb:89:in each
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/associations/collection_proxy.rb:89:in method_missing
[PROJECT_ROOT]/app/models/content_match.rb:71:in find_or_create_content_items
[PROJECT_ROOT]/app/models/content_match.rb:22:in block (3 levels) in update
[PROJECT_ROOT]/app/models/content_match.rb:21:in each
[PROJECT_ROOT]/app/models/content_match.rb:21:in block (2 levels) in update
[PROJECT_ROOT]/app/models/content_match.rb:20:in each
[PROJECT_ROOT]/app/models/content_match.rb:20:in block in update
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/relation/batches.rb:72:in find_in_batches
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/querying.rb:8:in find_in_batches
[PROJECT_ROOT]/app/models/content_match.rb:19:in update
[PROJECT_ROOT]/lib/tasks/content_items.rake:4:in block (2 levels) in <top (required)>
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in call
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in block in execute
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in each
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in execute
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:184:in block in invoke_with_call_chain
[PROJECT_ROOT]/vendor/ruby-1.9.2/lib/ruby/1.9.1/monitor.rb:201:in mon_synchronize
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:177:in invoke_with_call_chain
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:205:in block in invoke_prerequisites
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:203:in each
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:203:in invoke_prerequisites
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:183:in block in invoke_with_call_chain
[PROJECT_ROOT]/vendor/ruby-1.9.2/lib/ruby/1.9.1/monitor.rb:201:in mon_synchronize
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:177:in invoke_with_call_chain
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:170:in invoke
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:143:in invoke_task
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in block (2 levels) in top_level
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in each
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in block in top_level
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:110:in run_with_threads
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:95:in top_level
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:73:in block in run
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:160:in standard_exception_handling
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:70:in run
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/bin/rake:33:in <top (required)>
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/bin/rake:19:in load
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/bin/rake:19:in <main>
```
@toddmazierski toddmazierski pushed a commit that closed this issue Mar 5, 2014
Todd Mazierski Fix #18: use different source for video thumbnail URL. cc2480a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment