QutEcoacoustics / baw-server

The acoustic workbench server for storing and managing ecoacoustic data. Manages the structure and audio data. Provides an API for clients access.
Apache License 2.0
9 stars 4 forks source link

A NoMethodError occurred in sites#filter: #621

Closed atruskie closed 2 years ago

atruskie commented 2 years ago
A NoMethodError occurred in sites#filter:

  undefined method `*' for nil:NilClass

    ((latitude * 1e12) + (longitude * 1e6)).to_i
               ^
  app/models/site.rb:191:in `location_jitter_seed'

  app/models/site.rb:191:in `location_jitter_seed'
  app/models/site.rb:165:in `custom_longitude'
  app/models/site.rb:260:in `block in filter_settings'
  app/modules/api/response.rb:117:in `block in prepare'
  app/modules/api/response.rb:114:in `transform_values'
  app/modules/api/response.rb:114:in `prepare'
  app/modules/api/controller_helper.rb:144:in `block in respond_filter'
  app/modules/api/controller_helper.rb:143:in `map'
  app/modules/api/controller_helper.rb:143:in `respond_filter'
  app/controllers/sites_controller.rb:189:in `filter'
  app/modules/include_controller.rb:684:in `set_then_reset_user_stamper'