NoMethodError undefined method `>' check_reviving_old_topic


(Dean Taylor) #1

Seeing the following error in logs, looks like its from composing a reply.

NoMethodError (undefined method `>' for nil:NilClass)

Backtrace:

/var/www/discourse/lib/composer_messages_finder.rb:136:in `check_reviving_old_topic'
/var/www/discourse/lib/composer_messages_finder.rb:9:in `find'
/var/www/discourse/app/controllers/composer_messages_controller.rb:9:in `index'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.1/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.1/lib/abstract_controller/base.rb:189:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.1/lib/action_controller/metal/rendering.rb:10:in `process_action'

More backtrace and more detail


(Robin Ward) #2

Thanks, this is probably harmless for your site as it’s just about warning the user of something. Still it needed to be fixed so I just committed this:

https://github.com/discourse/discourse/commit/a188ba77dcaeddcff5b8d695e81266b3b7ffcf10


(Jeff Atwood) #3