JavaScript error: canvas is null
Free Static Code Analysis Tool for PHP Applications
Status: Beta
Brought to you by:
fluxreiners
I am scanning a very alrge project with RIPS and I'm getting the following error after it finnishes processing the results. The page has the pipe seprated results that you can only see when its slected. The js console is showing an error in script.js on line 873 canvas is null:
canvas = document.getElementById("diagram");
ctx = canvas.getContext("2d");
It looks like the getElementById is failing, and I'm not sure why...