I have some rake tasks defined and within those tasks; there is a code as follows
task :stale => :environment do |_, args|
if args.extras.empty?
When I run the task; it gets aborted with the following error
rake aborted! undefined method `empty?' for nil:NilClass /lib/tasks/:387:in `block (3 levels) in ' /vendor/bundle/ruby/2.2.0/gems/bugsnag-2.8.12/lib/bugsnag/rake.rb:12:in `execute_with_bugsnag' Tasks: TOP =>
How could this error be resolved?