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_) |
arv (Not doing code reviews)
2010/12/10 22:19:42
ws
nduca
2010/12/11 00:16:45
Done.
|
+ throw new Error('Element ' + divId + ' not found'); |
// Initialize the default values to those of the DIV. |
this.width_ = this.node_.offsetWidth; |