Refsheet / refsheet-site

Refsheet is a place for character and world builders to attach assets related to their characters in one unified format, allowing artists and story writers to access the specific details of a character, maintaining synchronized dynamic canon.
https://refsheet.net
GNU General Public License v3.0
20 stars 1 forks source link

mutations/character_mutations.rb:72 user is possibly nil? Why? #196

Open sentry-io[bot] opened 4 years ago

sentry-io[bot] commented 4 years ago

Sentry Issue: REFST-2C1

NoMethodError: undefined method `characters' for nil:NilClass
  app/graphql/mutations/character_mutations.rb:72:in `autocomplete'
    scope = user.characters
  app/graphql/mutations/application_mutation.rb:24:in `block in action'
    resolver.send(name)
  app/controllers/graphql_controller.rb:35:in `block in execute'
    result = RefsheetSchema.execute(query,
  app/controllers/graphql_controller.rb:34:in `execute'
    Google::Cloud::Trace.in_span(operation_name) do |_span|
  app/controllers/application_controller.rb:238:in `block in tag_logs'
    Rails.logger.tagged("#{params[:controller]}##{params[:action]}", &block)
...
(135 additional frame(s) were not displayed)