diff --git a/lib/fuzzer/main.js b/lib/fuzzer/main.js index 773cdfe902f52b6e17027ab3d4092a059a04ee7f..ce02276f981936b5863bff76bd694abd1b50478a 100644 --- a/lib/fuzzer/main.js +++ b/lib/fuzzer/main.js @@ -214,7 +214,7 @@ // Empirically, Firefox needs this requestAnimationFrame in order for the scrollIntoView to work. requestAnimationFrame(function() { const slDom = document.getElementById("l" + sourceLocationIndex); - slDom.scrollIntoView({ + if (slDom != null) slDom.scrollIntoView({ behavior: "smooth", block: "center", });