diff --git a/mozilla/extensions/venkman/resources/content/venkman-outliners.js b/mozilla/extensions/venkman/resources/content/venkman-outliners.js index bb69f2ae1fb..1a2b71b8391 100644 --- a/mozilla/extensions/venkman/resources/content/venkman-outliners.js +++ b/mozilla/extensions/venkman/resources/content/venkman-outliners.js @@ -64,7 +64,7 @@ function initOutliners() console._sourceOutlinerView = new BasicOView(); console._sourceOutlinerView.setCurrentLine = -function bov_setcl (line) +function sov_setcl (line) { if (this.currentLine) { @@ -122,7 +122,7 @@ function sov_rowprops (row, properties) console._sourceOutlinerView.getCellProperties = function sov_cellprops (row, colID, properties) { - if (!this.sourceArray[row]) + if (!this.sourceArray || !this.sourceArray[row]) return; if (colID == "breakpoint-col" && this.sourceArray[row].isBreakpoint) diff --git a/mozilla/extensions/venkman/resources/content/venkman-trees.js b/mozilla/extensions/venkman/resources/content/venkman-trees.js index bb69f2ae1fb..1a2b71b8391 100644 --- a/mozilla/extensions/venkman/resources/content/venkman-trees.js +++ b/mozilla/extensions/venkman/resources/content/venkman-trees.js @@ -64,7 +64,7 @@ function initOutliners() console._sourceOutlinerView = new BasicOView(); console._sourceOutlinerView.setCurrentLine = -function bov_setcl (line) +function sov_setcl (line) { if (this.currentLine) { @@ -122,7 +122,7 @@ function sov_rowprops (row, properties) console._sourceOutlinerView.getCellProperties = function sov_cellprops (row, colID, properties) { - if (!this.sourceArray[row]) + if (!this.sourceArray || !this.sourceArray[row]) return; if (colID == "breakpoint-col" && this.sourceArray[row].isBreakpoint)