Bug 774808 - GCLI sometimes stops working; r=jwalker
authorMichael Ratcliffe <mratcliffe@mozilla.com>
Thu, 23 Aug 2012 14:48:23 +0100
changeset 105434 bbd267f16fc721c3e5f316659512d75711068c13
parent 105433 e5588de9374ca703808fa1186621892c8f6a1032
child 105435 11a0db7262a04c8481f672122d1bded2636c5451
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
reviewersjwalker
bugs774808
milestone17.0a1
Bug 774808 - GCLI sometimes stops working; r=jwalker
browser/devtools/shared/DeveloperToolbar.jsm
--- a/browser/devtools/shared/DeveloperToolbar.jsm
+++ b/browser/devtools/shared/DeveloperToolbar.jsm
@@ -694,17 +694,20 @@ OutputPanel.prototype.update = function 
 };
 
 /**
  * Detach listeners from the currently displayed Output.
  */
 OutputPanel.prototype.remove = function OP_remove()
 {
   this.canHide = true;
-  this._panel.hidePopup();
+
+  if (this._panel) {
+    this._panel.hidePopup();
+  }
 
   if (this.displayedOutput) {
     this.displayedOutput.onChange.remove(this.update, this);
     this.displayedOutput.onClose.remove(this.remove, this);
     delete this.displayedOutput;
   }
 };