Permalink
Browse files

Avoid NPE

  • Loading branch information...
1 parent bc42ce2 commit 6a58203889388f98f95362e66fecdc965f9f4eb4 @janodvarko janodvarko committed Jun 21, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 extension/content/firebug/js/scriptPanel.js
@@ -809,6 +809,10 @@ Firebug.ScriptPanel.prototype = Obj.extend(Firebug.SourceBoxPanel,
{
return Win.iterateBrowserWindows("navigator:browser", function(win)
{
+ // Firebug doesn't have to be loaded in every browser window (see delayed load).
+ if (!win.Firebug.TabWatcher)
+ return false;
+
return win.Firebug.TabWatcher.iterateContexts(function(context)
{
if (context.stopped)

0 comments on commit 6a58203

Please sign in to comment.