NoMethodError: undefined method `username' for nil:NilClass #548

Closed
carols10cents opened this Issue Jul 25, 2012 · 3 comments

Comments

Projects
None yet
2 participants
Contributor

carols10cents commented Jul 25, 2012

Check full details on Airbrake: http://rstatus.airbrake.io/errors/51581943?auth_token=ab3bb3a1d53d986a8daffb99b48d60ff88568f4c

[PROJECT_ROOT]/app/views/updates/_list.html.haml:10:in `block in _app_views_updates__list_html_haml__1846920519535564043_57161180'
[PROJECT_ROOT]/app/views/updates/_list.html.haml:5:in `each'
[PROJECT_ROOT]/app/views/updates/_list.html.haml:5:in `_app_views_updates__list_html_haml__1846920519535564043_57161180'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/template.rb:144:in `block in render'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.6/lib/active_support/notifications.rb:55:in `instrument'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/template.rb:142:in `render'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/renderer/partial_renderer.rb:256:in `render_partial'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/renderer/partial_renderer.rb:228:in `block (2 levels) in render'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.6/lib/active_support/notifications.rb:53:in `block in instrument'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.6/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.6/lib/active_support/notifications.rb:53:in `instrument'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/renderer/partial_renderer.rb:227:in `block in render'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/renderer/partial_renderer.rb:219:in `render'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/renderer/renderer.rb:41:in `render_partial'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/renderer/renderer.rb:15:in `render'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/helpers/rendering_helper.rb:24:in `render'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/haml-3.1.2/lib/haml/helpers/action_view_mods.rb:11:in `block in render_with_haml'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/haml-3.1.2/lib/haml/helpers.rb:90:in `non_haml'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/haml-3.1.2/lib/haml/helpers/action_view_mods.rb:11:in `render_with_haml'
[PROJECT_ROOT]/app/views/searches/show.html.haml:11:in `_app_views_searches_show_html_haml___3881508494241911813_57377840'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/template.rb:144:in `block in render'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.6/lib/active_support/notifications.rb:55:in `instrument'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/template.rb:142:in `render'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/renderer/template_renderer.rb:40:in `block (2 levels) in render_template'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.6/lib/active_support/notifications.rb:53:in `block in instrument'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.6/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.6/lib/active_support/notifications.rb:53:in `instrument'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/renderer/template_renderer.rb:39:in `block in render_template'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/renderer/template_renderer.rb:38:in `render_template'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/renderer/template_renderer.rb:12:in `block in render'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/renderer/template_renderer.rb:9:in `render'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/renderer/renderer.rb:36:in `render_template'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_view/renderer/renderer.rb:17:in `render'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/abstract_controller/rendering.rb:120:in `_render_template'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_controller/metal/streaming.rb:250:in `_render_template'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/abstract_controller/rendering.rb:114:in `render_to_body'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_controller/metal/renderers.rb:30:in `render_to_body'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_controller/metal/compatibility.rb:43:in `render_to_body'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/abstract_controller/rendering.rb:99:in `render'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_controller/metal/rendering.rb:16:in `render'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.6/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/usr/local/lib/ruby/1.9.1/benchmark.rb:310:in `realtime'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.6/lib/active_support/core_ext/benchmark.rb:5:in `ms'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_controller/metal/instrumentation.rb:40:in `block in render'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_controller/metal/instrumentation.rb:39:in `render'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/abstract_controller/base.rb:167:in `process_action'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_controller/metal/rendering.rb:10:in `process_action'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.6/lib/active_support/callbacks.rb:425:in `_run__2281079909935380347__process_action__3884736908645411538__callbacks'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.6/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.6/lib/active_support/callbacks.rb:81:in `run_callbacks'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/abstract_controller/callbacks.rb:17:in `process_action'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_controller/metal/rescue.rb:17:in `process_action'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.6/lib/active_support/notifications.rb:53:in `block in instrument'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.6/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.6/lib/active_support/notifications.rb:53:in `instrument'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_controller/metal/params_wrapper.rb:201:in `process_action'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.3.1/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:34:in `block in process_action'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.3.1/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:255:in `block in perform_action_with_newrelic_trace'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.3.1/lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.3.1/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:250:in `perform_action_with_newrelic_trace'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.3.1/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:33:in `process_action'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/abstract_controller/base.rb:121:in `process'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/abstract_controller/rendering.rb:45:in `process'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_controller/metal.rb:193:in `dispatch'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_controller/metal.rb:236:in `block in action'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_dispatch/routing/route_set.rb:71:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_dispatch/routing/route_set.rb:71:in `dispatch'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_dispatch/routing/route_set.rb:35:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `block in call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `block in recognize'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:75:in `optimized_each'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_dispatch/routing/route_set.rb:538:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/bundler/gems/omniauth-5aaa1ae45c9e/oa-core/lib/omniauth/strategy.rb:44:in `call!'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/bundler/gems/omniauth-5aaa1ae45c9e/oa-core/lib/omniauth/strategy.rb:30:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/bundler/gems/omniauth-5aaa1ae45c9e/oa-core/lib/omniauth/builder.rb:30:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.3.1/lib/new_relic/rack/browser_monitoring.rb:23:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/exceptional-2.0.32/lib/exceptional/integration/rack_rails.rb:13:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/mongo_mapper-0.9.2/lib/mongo_mapper/middleware/identity_map.rb:10:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/etag.rb:23:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/conditionalget.rb:25:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_dispatch/middleware/head.rb:14:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_dispatch/middleware/flash.rb:243:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:195:in `context'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:190:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_dispatch/middleware/cookies.rb:331:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.6/lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.6/lib/active_support/callbacks.rb:81:in `run_callbacks'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_dispatch/middleware/callbacks.rb:28:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/sendfile.rb:101:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/railties-3.1.6/lib/rails/rack/logger.rb:13:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/methodoverride.rb:24:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/runtime.rb:17:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.6/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/lock.rb:15:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.6/lib/action_dispatch/middleware/static.rb:61:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rack-ssl-1.3.2/lib/rack/ssl.rb:27:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in `fetch'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in `lookup'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/railties-3.1.6/lib/rails/engine.rb:456:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/railties-3.1.6/lib/rails/application.rb:143:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/content_length.rb:14:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/railties-3.1.6/lib/rails/rack/log_tailer.rb:14:in `call'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/handler/webrick.rb:59:in `service'
/usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/usr/local/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
Contributor

carols10cents commented Jul 25, 2012

Action searches#show
URL https://www.rstat.us/search?page=2&per_page=20&search=%23FF
File app/views/updates/_list.html.haml:10

Contributor

chrismdp commented Aug 21, 2012

I've seen this as a side effect of #596 - I think that bug was corrupting data which caused this bug. Cleaning out the offending records fixed it for me.

HTH

@carols10cents carols10cents added a commit to carols10cents/rstat.us that referenced this issue Nov 24, 2012

@carols10cents carols10cents Fixes Issue #548 and #731. Handles cases where author is nil and that…
… causes errors in the view.

I don't know how update authors get to be nil, but here we are.
abde4c9

@steveklabnik steveklabnik added a commit that referenced this issue Nov 24, 2012

@steveklabnik steveklabnik Merge pull request #732 from carols10cents/issue_731
Fixes Issue #548 and #731. Handles cases where author is nil and that ca...
b406ec6
Contributor

carols10cents commented Nov 24, 2012

Should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment