Issue when viewing a document with footnotes - ActionView::Template::Error: undefined method `at_css' for nil:NilClass
https://sentry.gitlab.net/gitlab/gitlabcom/issues/648995/
NoMethodError: undefined method `at_css' for nil:NilClass
banzai/filter/footnote_filter.rb:36:in `block in call'
backref_node = footnote_node.at_css("a[href=\"##{fnref_id(ref_num)}\"]")
nokogiri/xml/node_set.rb:238:in `block in each'
yield self[x]
nokogiri/xml/node_set.rb:237:in `upto'
0.upto(length - 1) do |x|
nokogiri/xml/node_set.rb:237:in `each'
0.upto(length - 1) do |x|
banzai/filter/footnote_filter.rb:33:in `call'
doc.css('sup > a[id]').each do |link_node|
...
(218 additional frame(s) were not displayed)
ActionView::Template::Error: undefined method `at_css' for nil:NilClass
ActionView::Template::Error: undefined method `at_css' for nil:NilClass
This can currently experienced be experienced on 11.8.0-rc2-ee when viewing https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/code_review.md.
Edited by Rémy Coutable