Skip to content

Commit

Permalink
Avoid NPE + fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
janodvarko committed Jun 25, 2013
1 parent 3730d36 commit b51e916
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions extension/content/firebug/console/errorMessageRep.js
Expand Up @@ -488,6 +488,11 @@ var ErrorMessageUpdater = Obj.extend(Firebug.Module,
// the error-object passed into this method.
var context = errorObject.context;
var panel = context.getPanel("console");

// The Console panel can be disabled.
if (!panel)
return;

var rows = panel.panelNode.querySelectorAll(".logRow-errorMessage");
for (var i=0; i<rows.length; i++)
{
Expand Down
4 changes: 2 additions & 2 deletions extension/content/firebug/debugger/debuggerLib.js
Expand Up @@ -17,7 +17,7 @@ var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;

// Debugees
// Debuggees
var dglobalWeakMap = new WeakMap();

// Module object
Expand All @@ -28,7 +28,7 @@ var TraceError = FBTrace.to("DBG_ERRORS");
// ********************************************************************************************* //
// Implementation

// xxxHonza: for now Firebug is accesing JSD2 API directly in some cases, but as soon
// xxxHonza: for now Firebug is accessing JSD2 API directly in some cases, but as soon
// as RDP is supported the entire DebuggerLib module should be used only on the server side.

/**
Expand Down

0 comments on commit b51e916

Please sign in to comment.