BiathlonHelsinki/kuusipalaa

NoMethodError: undefined method `<' for nil:NilClass

Closed this issue · 0 comments

View details in Rollbar: https://rollbar.com/cenotaph/kuusipalaa/items/96/


NoMethodError: undefined method `<' for nil:NilClass
  File "/var/www/kuusipalaa/releases/20180423080633/app/models/pledge.rb", line 59, in check_balance
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb", line 413, in block in make_lambda
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb", line 197, in block (2 levels) in halting
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb", line 601, in block (2 levels) in default_terminator
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb", line 600, in catch
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb", line 600, in block in default_terminator
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb", line 198, in block in halting
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb", line 507, in block in invoke_before
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb", line 507, in each
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb", line 507, in invoke_before
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb", line 130, in run_callbacks
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb", line 827, in _run_validate_callbacks
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activemodel-5.1.6/lib/active_model/validations.rb", line 405, in run_validations!
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activemodel-5.1.6/lib/active_model/validations/callbacks.rb", line 114, in block in run_validations!
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb", line 131, in run_callbacks
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb", line 827, in _run_validation_callbacks
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activemodel-5.1.6/lib/active_model/validations/callbacks.rb", line 114, in run_validations!
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activemodel-5.1.6/lib/active_model/validations.rb", line 335, in valid?
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/validations.rb", line 65, in valid?
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/validations.rb", line 82, in perform_validations
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/validations.rb", line 44, in save
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/attribute_methods/dirty.rb", line 35, in save
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/transactions.rb", line 308, in block (2 levels) in save
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/transactions.rb", line 384, in block in with_transaction_returning_status
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/database_statements.rb", line 233, in transaction
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/transactions.rb", line 210, in transaction
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/transactions.rb", line 381, in with_transaction_returning_status
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/transactions.rb", line 308, in block in save
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/transactions.rb", line 323, in rollback_active_record_state!
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/transactions.rb", line 307, in save
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/suppressor.rb", line 42, in save
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/persistence.rb", line 281, in block in update
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/transactions.rb", line 384, in block in with_transaction_returning_status
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/database_statements.rb", line 235, in block in transaction
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/transaction.rb", line 194, in block in within_new_transaction
  File "/home/deploy/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/monitor.rb", line 226, in mon_synchronize
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/transaction.rb", line 191, in within_new_transaction
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/database_statements.rb", line 235, in transaction
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/transactions.rb", line 210, in transaction
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/transactions.rb", line 381, in with_transaction_returning_status
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/persistence.rb", line 279, in update
  File "/var/www/kuusipalaa/releases/20180423080633/app/controllers/pledges_controller.rb", line 134, in update
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/actionpack-5.1.6/lib/action_controller/metal/basic_implicit_render.rb", line 4, in send_action
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/actionpack-5.1.6/lib/abstract_controller/base.rb", line 186, in process_action
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/actionpack-5.1.6/lib/action_controller/metal/rendering.rb", line 30, in process_action
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/actionpack-5.1.6/lib/abstract_controller/callbacks.rb", line 20, in block in process_action
  File "/var/www/kuusipalaa/shared/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/ca