diff --git a/lib/pronto/rubocop/offense_line.rb b/lib/pronto/rubocop/offense_line.rb index 9b2007b..6474469 100644 --- a/lib/pronto/rubocop/offense_line.rb +++ b/lib/pronto/rubocop/offense_line.rb @@ -34,6 +34,7 @@ def message_text def suggestion_text return unless patch_cop.runner.pronto_rubocop_config['suggestions'] return if corrections_count.zero? + return if corrector.nil? # possible after optimisation in https://github.com/rubocop/rubocop/pull/11264 return if differing_lines_count != corrections_count @suggestion_text ||= corrected_lines[offense.line - 1]