NoMethodError: undefined method `casecmp?' for nil:NilClass
Sentry error: https://new-sentry.gitlab.net/organizations/gitlab/issues/854057
Merge request: !153202 (merged)
NoMethodError: undefined method `casecmp?' for nil:NilClass
return if node[:href].casecmp?('_toc_') && node.text.casecmp?('_toc_')
^^^^^^^^^
from lib/banzai/filter/wiki_link_gollum_filter.rb:68:in `process_page_link'
from lib/banzai/filter/wiki_link_gollum_filter.rb:38:in `block in call'
from nokogiri-1.16.0-x86_64 (linux) lib/nokogiri/xml/node_set.rb:235:in `block in each'
from nokogiri-1.16.0-x86_64 (linux) lib/nokogiri/xml/node_set.rb:234:in `upto'
from nokogiri-1.16.0-x86_64 (linux) lib/nokogiri/xml/node_set.rb:234:in `each'
from lib/banzai/filter/wiki_link_gollum_filter.rb:37:in `call'
from html-pipeline (2.14.3) lib/html/pipeline/filter.rb:129:in `call'
from html-pipeline (2.14.3) lib/html/pipeline.rb:134:in `block in perform_filter'
from html-pipeline (2.14.3) lib/html/pipeline.rb:172:in `instrument'
from html-pipeline (2.14.3) lib/html/pipeline.rb:133:in `perform_filter'
from html-pipeline (2.14.3) lib/html/pipeline.rb:119:in `block (2 levels) in call'
from html-pipeline (2.14.3) lib/html/pipeline.rb:118:in `each'
from html-pipeline (2.14.3) lib/html/pipeline.rb:118:in `inject'
from html-pipeline (2.14.3) lib/html/pipeline.rb:118:in `block in call'
from html-pipeline (2.14.3) lib/html/pipeline.rb:172:in `instrument'
from html-pipeline (2.14.3) lib/html/pipeline.rb:116:in `call'