add: if (null == start) { debug.print(label + "null start"); } 
context:     this.setLineNumberStatus = function(e) {        var label = "QueryBufferListClass.setLineNumberStatus: ";        //debug.print(label + e);        if (this.lineStatus == null) {            debug.print(label + "null textareaStatus!");            return;        }        var buf = this.input;        if (!simulateSelectionStart(this.input)) {            return;        }        var start = buf.selectionStart;        var textToStart = null;        var linesArray = null;        var lineNumber = 1;        var column = 0;        if (start > 0) {            // figure out where start is, in the query            textToStart = buf.value.substr(0, start);            linesArray = textToStart.split(/\r\n|\r|\n/);            lineNumber = linesArray.length;            // because of the earlier substr() call,            // we know that the last line ends at selectionStart            var column = linesArray[lineNumber - 1].length;            // NB: at the start of a line, firefox returns an empty string            // meanwhile, IE6 swallows the whitespace...            // seems to be in the selection-range API, not in split(),            // so there is no workaround!            //debug.print(label + " start = " + start            //          + " lineNumber = " + lineNumber            //          + " column = " + column            //          + ", lastLine = " + linesArray[lineNumber - 1] );        } else {            debug.print(label + "start = 0");        }        this.lineStatus.innerHTML = "" + lineNumber + "," + column;    }
meta: 952	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/d247a1b6dacb7417d1b16dd5d23f8786e47c143b/query.js/buggy/query.js