Skip to content

Instantly share code, notes, and snippets.

@brentmc79
Created July 28, 2009 15:50
Show Gist options
  • Save brentmc79/157468 to your computer and use it in GitHub Desktop.
Save brentmc79/157468 to your computer and use it in GitHub Desktop.
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.expand_pastes?
/Users/brent/Intridea/presently/app/models/update.rb:623:in `to_xmpp_payload'
/Users/brent/.gem/ruby/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `call'
/Users/brent/.gem/ruby/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `_nested_structures'
/Users/brent/.gem/ruby/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:58:in `method_missing'
/Users/brent/Intridea/presently/app/models/update.rb:563:in `to_xmpp_payload'
/Users/brent/.gem/ruby/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `call'
/Users/brent/.gem/ruby/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `_nested_structures'
/Users/brent/.gem/ruby/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:58:in `method_missing'
/Users/brent/Intridea/presently/app/models/update.rb:562:in `to_xmpp_payload'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:177:in `send'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:177:in `method_missing'
/Users/brent/Intridea/presently/app/models/xmpp_helper.rb:335:in `add_payload'
/Users/brent/Intridea/presently/app/models/xmpp_helper.rb:415:in `build_user_update'
/Users/brent/.gem/ruby/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `call'
/Users/brent/.gem/ruby/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `_nested_structures'
/Users/brent/.gem/ruby/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:58:in `method_missing'
/Users/brent/Intridea/presently/app/models/xmpp_helper.rb:414:in `build_user_update'
/Users/brent/.gem/ruby/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `call'
/Users/brent/.gem/ruby/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `_nested_structures'
/Users/brent/.gem/ruby/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:58:in `method_missing'
/Users/brent/Intridea/presently/app/models/xmpp_helper.rb:413:in `build_user_update'
/Users/brent/.gem/ruby/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `call'
/Users/brent/.gem/ruby/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `_nested_structures'
/Users/brent/.gem/ruby/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:58:in `method_missing'
/Users/brent/Intridea/presently/app/models/xmpp_helper.rb:412:in `build_user_update'
/Users/brent/Intridea/presently/app/models/xmpp_helper.rb:116:in `deliver_user_update'
/Users/brent/Intridea/presently/app/models/xmpp_helper.rb:85:in `deliver_update'
/Users/brent/Intridea/presently/app/models/paste.rb:29:in `dispatch_parent_update_via_xmpp'
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in `send'
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in `evaluate_method'
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/callbacks.rb:161:in `call'
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/callbacks.rb:93:in `run'
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/callbacks.rb:92:in `each'
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/callbacks.rb:92:in `send'
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/callbacks.rb:92:in `run'
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/callbacks.rb:272:in `run_callbacks'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/callbacks.rb:298:in `callback'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/callbacks.rb:221:in `create_without_timestamps'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/timestamp.rb:29:in `create'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/base.rb:2472:in `create_or_update_without_callbacks'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/callbacks.rb:207:in `create_or_update'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/base.rb:2200:in `save_without_validation'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/validations.rb:901:in `save_without_dirty'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/dirty.rb:75:in `save_without_transactions'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/transactions.rb:106:in `save_without_fiveruns_manage'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in `transaction'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/transactions.rb:79:in `transaction'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/transactions.rb:98:in `transaction'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/transactions.rb:106:in `save_without_fiveruns_manage'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/transactions.rb:118:in `rollback_active_record_state!'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/transactions.rb:106:in `save_without_fiveruns_manage'
/Users/brent/.gem/ruby/1.8/gems/fiveruns_manage-1.1.1/lib/fiveruns/../fiveruns/../fiveruns/manage/targets/rails/active_record/base.rb:198:in `save'
/Users/brent/.gem/ruby/1.8/gems/fiveruns_manage-1.1.1/lib/fiveruns/../fiveruns/../fiveruns/manage/targets/rails/active_record/base.rb:12:in `record'
/Users/brent/.gem/ruby/1.8/gems/fiveruns_manage-1.1.1/lib/fiveruns/manage.rb:92:in `stopwatch'
/Users/brent/.gem/ruby/1.8/gems/fiveruns_manage-1.1.1/lib/fiveruns/../fiveruns/../fiveruns/manage/targets/rails/active_record/base.rb:12:in `record'
/Users/brent/.gem/ruby/1.8/gems/fiveruns_manage-1.1.1/lib/fiveruns/manage.rb:69:in `tracking_model'
/Users/brent/.gem/ruby/1.8/gems/fiveruns_manage-1.1.1/lib/fiveruns/../fiveruns/../fiveruns/manage/targets/rails/active_record/base.rb:11:in `record'
/Users/brent/.gem/ruby/1.8/gems/fiveruns_manage-1.1.1/lib/fiveruns/../fiveruns/../fiveruns/manage/targets/rails/active_record/base.rb:197:in `save'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:177:in `send'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:177:in `method_missing'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/associations.rb:797:in `has_one_after_save_for_paste'
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in `send'
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in `evaluate_method'
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/callbacks.rb:161:in `call'
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/callbacks.rb:93:in `run'
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/callbacks.rb:92:in `each'
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/callbacks.rb:92:in `send'
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/callbacks.rb:92:in `run'
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/callbacks.rb:272:in `run_callbacks'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/callbacks.rb:298:in `callback'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/callbacks.rb:208:in `create_or_update'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/base.rb:2206:in `save_without_validation!'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/validations.rb:911:in `save_without_dirty!'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/dirty.rb:83:in `save_without_transactions!'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/transactions.rb:110:in `save_without_fiveruns_manage!'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in `transaction'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/transactions.rb:79:in `transaction'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/transactions.rb:98:in `transaction'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/transactions.rb:110:in `save_without_fiveruns_manage!'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/transactions.rb:118:in `rollback_active_record_state!'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/transactions.rb:110:in `save_without_fiveruns_manage!'
/Users/brent/.gem/ruby/1.8/gems/fiveruns_manage-1.1.1/lib/fiveruns/../fiveruns/../fiveruns/manage/targets/rails/active_record/base.rb:203:in `save!'
/Users/brent/.gem/ruby/1.8/gems/fiveruns_manage-1.1.1/lib/fiveruns/../fiveruns/../fiveruns/manage/targets/rails/active_record/base.rb:12:in `record'
/Users/brent/.gem/ruby/1.8/gems/fiveruns_manage-1.1.1/lib/fiveruns/manage.rb:92:in `stopwatch'
/Users/brent/.gem/ruby/1.8/gems/fiveruns_manage-1.1.1/lib/fiveruns/../fiveruns/../fiveruns/manage/targets/rails/active_record/base.rb:12:in `record'
/Users/brent/.gem/ruby/1.8/gems/fiveruns_manage-1.1.1/lib/fiveruns/manage.rb:69:in `tracking_model'
/Users/brent/.gem/ruby/1.8/gems/fiveruns_manage-1.1.1/lib/fiveruns/../fiveruns/../fiveruns/manage/targets/rails/active_record/base.rb:11:in `record'
/Users/brent/.gem/ruby/1.8/gems/fiveruns_manage-1.1.1/lib/fiveruns/../fiveruns/../fiveruns/manage/targets/rails/active_record/base.rb:202:in `save!'
/Users/brent/Intridea/presently/app/models/update.rb:371:in `post'
/Users/brent/Intridea/presently/app/models/user.rb:626:in `update!'
/Users/brent/Intridea/presently/app/controllers/manage_controller.rb:291:in `create_sample_updates'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1200:in `each_with_index'
/Users/brent/Intridea/presently/app/controllers/manage_controller.rb:278:in `each'
/Users/brent/Intridea/presently/app/controllers/manage_controller.rb:278:in `each_with_index'
/Users/brent/Intridea/presently/app/controllers/manage_controller.rb:278:in `create_sample_updates'
/Users/brent/Intridea/presently/app/controllers/manage_controller.rb:155:in `create_pilot'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in `transaction'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/transactions.rb:79:in `transaction'
/Users/brent/Intridea/presently/app/controllers/manage_controller.rb:150:in `create_pilot'
/Users/brent/Intridea/presently/vendor/rails/actionpack/lib/action_controller/base.rb:1162:in `send'
/Users/brent/Intridea/presently/vendor/rails/actionpack/lib/action_controller/base.rb:1162:in `perform_action_without_filters'
/Users/brent/Intridea/presently/vendor/rails/actionpack/lib/action_controller/filters.rb:580:in `call_filters'
/Users/brent/Intridea/presently/vendor/rails/actionpack/lib/action_controller/filters.rb:573:in `perform_action_without_benchmark'
/Users/brent/Intridea/presently/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/Users/brent/Intridea/presently/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/Users/brent/Intridea/presently/vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'
/Users/brent/Intridea/presently/vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
/Users/brent/Intridea/presently/vendor/plugins/query_memcached/lib/query_memcached.rb:149:in `cache'
/Users/brent/Intridea/presently/vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
/Users/brent/Intridea/presently/vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
/Users/brent/Intridea/presently/vendor/rails/actionpack/lib/action_controller/base.rb:529:in `send'
/Users/brent/Intridea/presently/vendor/rails/actionpack/lib/action_controller/base.rb:529:in `process_without_filters'
/Users/brent/Intridea/presently/vendor/rails/actionpack/lib/action_controller/filters.rb:569:in `process_without_session_management_support'
/Users/brent/Intridea/presently/vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in `process_without_fiveruns_manage'
/Users/brent/.gem/ruby/1.8/gems/fiveruns_manage-1.1.1/lib/fiveruns/../fiveruns/../fiveruns/manage/targets/rails/action_controller/base.rb:33:in `sass_old_process'
/Users/brent/.gem/ruby/1.8/gems/fiveruns_manage-1.1.1/lib/fiveruns/manage.rb:92:in `stopwatch'
/Users/brent/.gem/ruby/1.8/gems/fiveruns_manage-1.1.1/lib/fiveruns/../fiveruns/../fiveruns/manage/targets/rails/action_controller/base.rb:33:in `sass_old_process'
/Users/brent/.gem/ruby/1.8/gems/haml-2.0.9/lib/sass/plugin/rails.rb:19:in `process'
/Users/brent/Intridea/presently/vendor/rails/actionpack/lib/action_controller/base.rb:389:in `process'
/Users/brent/Intridea/presently/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:155:in `handle_request'
/Users/brent/Intridea/presently/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in `dispatch'
/Users/brent/Intridea/presently/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `synchronize'
/Users/brent/Intridea/presently/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `dispatch'
/Users/brent/Intridea/presently/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
/Users/brent/Intridea/presently/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:76:in `process'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `synchronize'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `process'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client_without_fiveruns_manage'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client_without_fiveruns_manage'
/Users/brent/.gem/ruby/1.8/gems/fiveruns_manage-1.1.1/lib/fiveruns/../fiveruns/../fiveruns/manage/targets/rails/mongrel/http_server.rb:12:in `process_client'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/dependencies.rb:502:in `load'
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/dependencies.rb:502:in `load'
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/dependencies.rb:354:in `new_constants_in'
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/dependencies.rb:502:in `load'
/Users/brent/Intridea/presently/vendor/rails/railties/lib/commands/servers/mongrel.rb:64
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in `require'
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/dependencies.rb:354:in `new_constants_in'
/Users/brent/Intridea/presently/vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in `require'
/Users/brent/Intridea/presently/vendor/rails/railties/lib/commands/server.rb:39
script/server:3:in `require'
script/server:3
Rendering template within layouts/manage
Rendering /manage/new_pilot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment