Bug 833004 - Can't start Tilt, r=paul, a=bbajaj
authorVictor Porof <vporof@mozilla.com>
Tue, 22 Jan 2013 17:57:23 +0200
changeset 123788 bd00c6ae955ec0a89b143919806bc69faba85634
parent 123787 e5b4e20f90e61e27753841630491bb00cae213dc
child 123789 70d6e59610f1b29c24fa44288982263c5fd26e0d
push idunknown
push userunknown
push dateunknown
reviewerspaul, bbajaj
bugs833004
milestone20.0a2
Bug 833004 - Can't start Tilt, r=paul, a=bbajaj
browser/devtools/tilt/TiltVisualizer.jsm
--- a/browser/devtools/tilt/TiltVisualizer.jsm
+++ b/browser/devtools/tilt/TiltVisualizer.jsm
@@ -189,17 +189,19 @@ TiltVisualizer.prototype = {
   /**
    * Unregister inspector event listeners.
    */
   unbindInspector: function TV_unbindInspector()
   {
     this._browserTab = null;
 
     if (this.inspector) {
-      this.inspector.selection.off("new-node", this.onNewNodeFromInspector);
+      if (this.inspector.selection) {
+        this.inspector.selection.off("new-node", this.onNewNodeFromInspector);
+      }
       this.inspector = null;
     }
 
     gDevTools.off("inspector-ready", this.onInspectorReady);
     gDevTools.off("toolbox-destroyed", this.onToolboxDestroyed);
 
     Services.obs.removeObserver(this.onNewNodeFromTilt,
                                 this.presenter.NOTIFICATIONS.HIGHLIGHTING);