Index: chrome/browser/resources/net_internals/view.js |
=================================================================== |
--- chrome/browser/resources/net_internals/view.js (revision 68554) |
+++ chrome/browser/resources/net_internals/view.js (working copy) |
@@ -80,6 +80,8 @@ |
View.call(this); |
this.node_ = document.getElementById(divId); |
+ if (!this.node_) |
+ throw new Error('Element ' + divId + ' not found'); |
// Initialize the default values to those of the DIV. |
this.width_ = this.node_.offsetWidth; |